diff --git a/nginx/root.conf b/nginx/root.conf index 908966b..a31c162 100644 --- a/nginx/root.conf +++ b/nginx/root.conf @@ -1,6 +1,6 @@ server { - listen 80 default_server; - listen 443 ssl default_server; + listen ${NGINX_PORT} default_server; + listen {NGINX_SSL_PORT ssl default_server; server_name ${NGINX_HOST}; ssl_certificate /etc/nginx/certs/req.pem; ssl_certificate_key /etc/nginx/certs/cert.key; diff --git a/odoo/dev.yml b/odoo/dev.yml index 4757422..a01d119 100644 --- a/odoo/dev.yml +++ b/odoo/dev.yml @@ -9,6 +9,8 @@ services: environment: PORT: 80 NGINX_HOST: localhost 127.0.0.1 + NGINX_PORT: 80 + NGINX_SSL_PORT: 443 ODOO_SERVICE: odoo ODOO_SERVER_NAMES: localodoo odoo ocb diff --git a/odoo/prod.yml b/odoo/prod.yml index 1da64d8..853da89 100644 --- a/odoo/prod.yml +++ b/odoo/prod.yml @@ -5,10 +5,10 @@ services: image: registry.yaltik.net/nginx:odoo environment: NGINX_HOST: localhost 127.0.0.1 + NGINX_PORT: 80 + NGINX_SSL_PORT: 443 ODOO_SERVICE: odoo ODOO_SERVER_NAMES: localodoo odoo ocb - ODOO_NGINX_PORT: 80 - ODOO_NGINX_SSL_PORT: 443 ports: - "80:80" - "443:443"