Browse Source

Fix nginx config writing for debian

servicefixes
gau1991 10 years ago
parent
commit
ac8e38776f
  1. 7
      ee/cli/plugins/stack.py
  2. 2
      ee/cli/templates/nginx-core.mustache

7
ee/cli/plugins/stack.py

@ -218,7 +218,12 @@ class EEStackController(CementBaseController):
nc.savef('/etc/nginx/nginx.conf')
# Custom Nginx configuration by EasyEngine
data = dict(version=EEVariables.ee_version)
if EEVariables.ee_platform_distro == 'Ubuntu':
data = dict(version=EEVariables.ee_version,
Ubuntu=True)
else:
data = dict(version=EEVariables.ee_version,
Debian=True)
Log.debug(self, 'Writting the nginx configuration to '
'file /etc/nginx/conf.d/ee-nginx.conf ')
ee_nginx = open('/etc/nginx/conf.d/ee-nginx.conf',

2
ee/cli/templates/nginx-core.mustache

@ -21,7 +21,9 @@ client_max_body_size 100m;
# SSL Settings
ssl_session_cache shared:SSL:20m;
ssl_session_timeout 10m;
{{#Ubuntu}}
ssl_prefer_server_ciphers on;
{{/Ubuntu}}
ssl_ciphers HIGH:!aNULL:!MD5:!kEDH;
# Log format Settings

Loading…
Cancel
Save