prod settings for SSO

This commit is contained in:
Eddi3_As 2025-03-03 14:47:12 -05:00
parent 44c023e023
commit 0508d86306
2 changed files with 3 additions and 1 deletions

View file

@ -12,6 +12,8 @@ server {
location /api {
rewrite /backend/(.*) /$1 break;
proxy_pass http://backend;
proxy_set_header Host $host; # Ensure Host header is forwarded
proxy_set_header X-Forwarded-Proto $scheme;
}
location /socket.io {

View file

@ -86,7 +86,7 @@ console.log(`Websocket setup with on() listeners.`);
app.use(cors());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
app.enable('trust proxy');
// Create routes
app.use('/api/user', userRouter);
app.use('/api/folder', folderRouter);