Skip to content

Commit

Permalink
fix up nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastian committed Mar 29, 2024
1 parent b844bc4 commit 3c4a165
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ RUN npm run build

FROM ratisbonacoding/nginx-cloudflare-cache
COPY --from=build /app/build /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
COPY nginx.conf /etc/nginx/nginx.conf

EXPOSE 8080
11 changes: 7 additions & 4 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,19 @@ http {
error_log /dev/null;

server {
server_name ratisbona-coding.org;
server_name hackaburg.de hackaburg.org;
listen 8080;

add_header Cache-Control "public, max-age=1382400, immutable";

location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
}
}

location /SecretRabbitMeetingBeTheChange {
alias /usr/share/nginx/html/;
index index.html index.htm;
}
}
}

0 comments on commit 3c4a165

Please sign in to comment.