Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ RUN set -x && HUGO_ENV=production make generate
FROM nginxinc/nginx-unprivileged:1.29-alpine

COPY --from=builder /src/public/ /usr/share/nginx/html/
COPY --from=builder /src/static/googlea8e04f239c597b8a.html /usr/share/nginx/html/
COPY nginx/relative_redirect.sh /docker-entrypoint.d/
COPY static/googlea8e04f239c597b8a.html /usr/share/nginx/html/
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
22 changes: 22 additions & 0 deletions nginx/default.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
server {
listen 8080;
server_name localhost;
root /usr/share/nginx/html;
absolute_redirect off;

#access_log /var/log/nginx/host.access.log main;

location ^~ /docs {
rewrite ^/docs/?(.*)$ /$1 permanent;
}

location / {
index index.html index.htm;
}

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
}
6 changes: 0 additions & 6 deletions nginx/relative_redirect.sh

This file was deleted.