mirror of
https://github.com/cupcakearmy/old.nicco.io.git
synced 2025-02-22 18:29:24 +00:00
nginx headers
This commit is contained in:
parent
18409912fb
commit
6b7d9ad20a
@ -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
|
||||||
|
@ -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
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user