[FIX]Bad nginx templating for ports

This commit is contained in:
Fabien BOURGEOIS 2017-07-01 15:55:22 +02:00
parent 0b153187ef
commit cf360c39a2
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
server {
listen ${NGINX_PORT} default_server;
listen {NGINX_SSL_PORT ssl 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;

View File

@ -7,13 +7,13 @@ upstream ${ODOO_SERVICE}longpoll {
}
server {
listen ${ODOO_NGINX_PORT};
listen ${NGINX_PORT};
server_name ${ODOO_SERVER_NAMES};
return 301 https://${DOLLSIGN}host${DOLLSIGN}request_uri;
}
server {
listen ${ODOO_NGINX_SSL_PORT} ssl;
listen ${NGINX_SSL_PORT} ssl;
server_name ${ODOO_SERVER_NAMES};
client_max_body_size 200M;
gzip on;