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