Question - App Proxy
-
-
Hi Joseph,
We are using an app proxy to access the on-prem applications. The upstream URL is http://192.168.88.130:8069; however, we do need to allow one more port, which is 8072, and we are not sure how to do it. The application vendor provided the following configuration for the nginx reverse proxy for reference
Redirect websocket requests to odoo gevent port
location /websocket {
proxy_pass http://odoochat;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;add_header Strict-Transport-Security "max-age=31536000; includeSubDomains"; proxy_cookie_flags session_id samesite=lax secure; # requires nginx 1.19.8
}
Redirect requests to odoo backend server
location / {
# Add Headers for odoo proxy mode
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect off;
proxy_pass http://odoo;add_header Strict-Transport-Security "max-age=31536000; includeSubDomains"; proxy_cookie_flags session_id samesite=lax secure; # requires nginx 1.19.8
}
-
Adding to above, here is the documentation
https://www.odoo.com/documentation/17.0/administration/on_premise/deploy.html#https