Skip to content

Commit 8c1f5ac

Browse files
committed
add EasyEngine version dynamically
1 parent afff3d4 commit 8c1f5ac

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ee/cli/plugins/stack.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ def post_pref(self, apt_packages, packages):
449449
" /etc/nginx/nginx.conf")
450450

451451
# EasyEngine config for NGINX plus
452+
data['version'] = EEVariables.ee_version
452453
Log.debug(self, 'Writting for nginx plus configuration'
453454
' to file /etc/nginx/conf.d/ee-plus.conf')
454455
ee_nginx = open('/etc/nginx/conf.d/ee-plus.conf',

ee/cli/templates/ee-plus.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ types_hash_max_size 2048;
99

1010
server_tokens off;
1111
reset_timedout_connection on;
12-
add_header X-Powered-By "EasyEngine 3.3.5";
12+
add_header X-Powered-By "EasyEngine {{ version }}";
1313
add_header rt-Fastcgi-Cache $upstream_cache_status;
1414

1515
# Limit Request

0 commit comments

Comments
 (0)