docker kompostownik is working 🎉

This commit is contained in:
slawk0
2024-11-16 19:54:54 +01:00
parent 3a866710f8
commit 7663f5da8f
4 changed files with 50 additions and 40 deletions

18
nginx.conf Normal file
View File

@@ -0,0 +1,18 @@
server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}
location /api {
proxy_pass http://relay-server:4000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}