nginx headers

This commit is contained in:
cupcakearmy 2019-08-24 10:16:43 +02:00
parent 18409912fb
commit 6b7d9ad20a
3 changed files with 9 additions and 7 deletions

View File

@ -1,4 +1,4 @@
version: '3'
version: '3.7'
services:
home:
@ -7,6 +7,7 @@ services:
ports:
- 80
volumes:
- ./nginx.conf:/usr/local/nginx/conf/sites/default.conf:ro
- ./public:/srv:ro
networks:
- traefik

View File

@ -1,10 +1,11 @@
version: '3'
version: '3.7'
services:
home:
image: nginx:alpine
image: cupcakearmy/static
restart: always
ports:
- 3000:80
volumes:
- ./public:/usr/share/nginx/html:ro
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./nginx.conf:/usr/local/nginx/conf/sites/default.conf:ro
- ./public:/srv:ro

View File

@ -9,7 +9,7 @@ server {
add_header Referrer-Policy "origin";
location / {
root /usr/share/nginx/html;
try_files $uri /index.html;
root /srv;
try_files $uri /index.html =404;
}
}