no debil no

This commit is contained in:
slawk0
2024-11-21 21:47:45 +01:00
parent 1c529ae66d
commit 1c65cf28af
3 changed files with 11 additions and 2 deletions

View File

@@ -16,6 +16,15 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
location /attachments {
proxy_pass http://relay-server:3000;
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;
}
location ~* \.io {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

View File

@@ -1,5 +1,5 @@
CLIENT_PORT=80
CLIENT_PORT=5000
SERVER_PORT=3000 #DO NOT CHANGE
JWT_SECRET=fdsfsdfds@

View File

@@ -6,7 +6,7 @@ const client = new Client({
password: process.env.PG_PASSWORD,
database: process.env.PG_DATABASE,
host: process.env.PG_HOST,
port: 5433,
port: 5432,
});
client