mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
prod settings for SSO
This commit is contained in:
parent
44c023e023
commit
0508d86306
2 changed files with 3 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue