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: services:
home: home:
@ -7,6 +7,7 @@ services:
ports: ports:
- 80 - 80
volumes: volumes:
- ./nginx.conf:/usr/local/nginx/conf/sites/default.conf:ro
- ./public:/srv:ro - ./public:/srv:ro
networks: networks:
- traefik - traefik

View File

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

View File

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