mirror of
https://github.com/odoocker/odoocker
synced 2025-11-04 15:19:22 +01:00
fixed nginx for websocket
This commit is contained in:
@@ -22,11 +22,12 @@ server {
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://odoo:8069;
|
||||
proxy_redirect off;
|
||||
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;
|
||||
proxy_set_header Host $host;
|
||||
proxy_pass http://odoo:8069;
|
||||
|
||||
# Add CORS headers
|
||||
add_header 'Access-Control-Allow-Origin' $CORS_ALLOWED_DOMAIN;
|
||||
@@ -40,11 +41,13 @@ server {
|
||||
}
|
||||
|
||||
location /websocket {
|
||||
proxy_pass http://odoo:8072;
|
||||
proxy_redirect off;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
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;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header Host $host;
|
||||
proxy_pass http://odoo:8072;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -259,29 +259,33 @@ limit_time_real_cron = {LIMIT_TIME_REAL_CRON}
|
||||
; --limit-request
|
||||
limit_request = {LIMIT_REQUEST}
|
||||
|
||||
;-----------------------------;
|
||||
; External Integrations ;
|
||||
;-----------------------------;
|
||||
|
||||
;-------------;
|
||||
; Redis ;
|
||||
;-------------;
|
||||
; Possible values: 1 or true
|
||||
; -- Possible values: 1 or true
|
||||
ODOO_SESSION_REDIS = {ODOO_SESSION_REDIS}
|
||||
|
||||
; Defaults to is localhost
|
||||
; -- Defaults to is localhost
|
||||
ODOO_SESSION_REDIS_HOST = {ODOO_SESSION_REDIS_HOST}
|
||||
|
||||
; Defaults to 6379
|
||||
; -- Defaults to 6379
|
||||
ODOO_SESSION_REDIS_PORT = {ODOO_SESSION_REDIS_PORT}
|
||||
|
||||
; Sets the password for the AUTH command (optional)
|
||||
; -- Sets the password for the AUTH command (optional)
|
||||
ODOO_SESSION_REDIS_PASSWORD = {ODOO_SESSION_REDIS_PASSWORD}
|
||||
|
||||
; Alternative way to define the Redis server address like rediss:// protocol.
|
||||
; -- Alternative way to define the Redis server address like rediss:// protocol.
|
||||
ODOO_SESSION_REDIS_URL = {ODOO_SESSION_REDIS_URL}
|
||||
|
||||
; Prefix for the session keys (optional)
|
||||
; -- Prefix for the session keys (optional)
|
||||
ODOO_SESSION_REDIS_PREFIX = {ODOO_SESSION_REDIS_PREFIX}
|
||||
|
||||
; Time in seconds before expiration of the sessions (default is 7 days)
|
||||
; -- Time in seconds before expiration of the sessions (default is 7 days)
|
||||
ODOO_SESSION_REDIS_EXPIRATION = {ODOO_SESSION_REDIS_EXPIRATION}
|
||||
|
||||
; Time in seconds before expiration of the anonymous sessions (default is 3 hours)
|
||||
; -- Time in seconds before expiration of the anonymous sessions (default is 3 hours)
|
||||
ODOO_SESSION_REDIS_EXPIRATION_ANONYMOUS = {ODOO_SESSION_REDIS_EXPIRATION_ANONYMOUS}
|
||||
|
||||
@@ -374,31 +374,35 @@ limit_time_real_cron = {LIMIT_TIME_REAL_CRON}
|
||||
; --limit-request
|
||||
limit_request = {LIMIT_REQUEST}
|
||||
|
||||
;-----------------------------;
|
||||
; External Integrations ;
|
||||
;-----------------------------;
|
||||
|
||||
;-------------;
|
||||
; Redis ;
|
||||
;-------------;
|
||||
; Possible values: 1 or true
|
||||
; -- Possible values: 1 or true
|
||||
ODOO_SESSION_REDIS = {ODOO_SESSION_REDIS}
|
||||
|
||||
; Defaults to is localhost
|
||||
; -- Defaults to is localhost
|
||||
ODOO_SESSION_REDIS_HOST = {ODOO_SESSION_REDIS_HOST}
|
||||
|
||||
; Defaults to 6379
|
||||
; -- Defaults to 6379
|
||||
ODOO_SESSION_REDIS_PORT = {ODOO_SESSION_REDIS_PORT}
|
||||
|
||||
; Sets the password for the AUTH command (optional)
|
||||
; -- Sets the password for the AUTH command (optional)
|
||||
ODOO_SESSION_REDIS_PASSWORD = {ODOO_SESSION_REDIS_PASSWORD}
|
||||
|
||||
; Alternative way to define the Redis server address like rediss:// protocol.
|
||||
; -- Alternative way to define the Redis server address like rediss:// protocol.
|
||||
ODOO_SESSION_REDIS_URL = {ODOO_SESSION_REDIS_URL}
|
||||
|
||||
; Prefix for the session keys (optional)
|
||||
; -- Prefix for the session keys (optional)
|
||||
ODOO_SESSION_REDIS_PREFIX = {ODOO_SESSION_REDIS_PREFIX}
|
||||
|
||||
; Time in seconds before expiration of the sessions (default is 7 days)
|
||||
; -- Time in seconds before expiration of the sessions (default is 7 days)
|
||||
ODOO_SESSION_REDIS_EXPIRATION = {ODOO_SESSION_REDIS_EXPIRATION}
|
||||
|
||||
; Time in seconds before expiration of the anonymous sessions (default is 3 hours)
|
||||
; -- Time in seconds before expiration of the anonymous sessions (default is 3 hours)
|
||||
ODOO_SESSION_REDIS_EXPIRATION_ANONYMOUS = {ODOO_SESSION_REDIS_EXPIRATION_ANONYMOUS}
|
||||
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user