Browse Source

add EasyEngine version dynamically

feature/refactor-php
harshadyeola 9 years ago
parent
commit
8c1f5ac942
  1. 1
      ee/cli/plugins/stack.py
  2. 2
      ee/cli/templates/ee-plus.mustache

1
ee/cli/plugins/stack.py

@ -449,6 +449,7 @@ class EEStackController(CementBaseController):
" /etc/nginx/nginx.conf")
# EasyEngine config for NGINX plus
data['version'] = EEVariables.ee_version
Log.debug(self, 'Writting for nginx plus configuration'
' to file /etc/nginx/conf.d/ee-plus.conf')
ee_nginx = open('/etc/nginx/conf.d/ee-plus.conf',

2
ee/cli/templates/ee-plus.mustache

@ -9,7 +9,7 @@ types_hash_max_size 2048;
server_tokens off;
reset_timedout_connection on;
add_header X-Powered-By "EasyEngine 3.3.5";
add_header X-Powered-By "EasyEngine {{ version }}";
add_header rt-Fastcgi-Cache $upstream_cache_status;
# Limit Request

Loading…
Cancel
Save