added static usage to nginx

pull/2/head
mtyton 2023-05-26 00:58:40 +02:00
rodzic c927b700e4
commit ba41fc9704
2 zmienionych plików z 17 dodań i 21 usunięć

Wyświetl plik

@ -13,6 +13,8 @@ services:
- ../postgres/:/var/lib/postgresql
env_file:
- .env
networks:
- nginx_network
comfy:
build:
@ -31,13 +33,23 @@ services:
- .env
depends_on:
- db
networks:
- nginx_network
web:
image: nginx
volumes:
- ../nginx/nginx.conf:/etc/nginx/nginx.conf
- ../nginx/conf.d/:/etc/nginx/conf.d/
- ./static/:/opt/services/comfy/static
- ./media/:/opt/services/comfy/media
ports:
- "8000:80"
environment:
- NGINX_HOST=artel.tepewu.pl
- NGINX_PORT=80
networks:
- nginx_network
networks:
nginx_network:
driver: bridge

Wyświetl plik

@ -1,16 +0,0 @@
upstream comfy {
server comfy:8001;
}
server {
listen 80;
location / {
proxy_pass http://comfy;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
}