Добавил WireGuard и nginx proxy для Flask

This commit is contained in:
Alex55 2026-03-25 14:12:18 +02:00
parent c1029f5a6a
commit 6b96d4971a
2 changed files with 1 additions and 2 deletions

View File

@ -17,7 +17,6 @@ services:
web: web:
build: . build: .
container_name: flask-dev container_name: flask-dev
network_mode: "service:wireguard"
ports: ports:
- "5205:5205" # Пробрасываем порт наружу - "5205:5205" # Пробрасываем порт наружу
volumes: volumes:

View File

@ -6,7 +6,7 @@ server {
ssl_certificate_key /etc/letsencrypt/live/wstkeys.top/privkey.pem; ssl_certificate_key /etc/letsencrypt/live/wstkeys.top/privkey.pem;
location / { location / {
proxy_pass http://wireguard:5205; proxy_pass http://host.docker.internal:5205;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;