1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
diff --git a/src/nginx/wok.conf.in b/src/nginx/wok.conf.in
index 512b00b..116fce9 100644
--- a/src/nginx/wok.conf.in
+++ b/src/nginx/wok.conf.in
@@ -22,7 +22,8 @@
# This is a template file to be used to generate a nginx
# proxy config file at wokd script.
-client_max_body_size ${max_body_size}k;
+#Check nginx.conf which already have this directive
+#client_max_body_size ${max_body_size}k;
# Set timeout, based on configuration values, to avoid the 504 Gateway Timeout
# when Wok is processing a request.
diff --git a/src/wok/proxy.py b/src/wok/proxy.py
index 4b06fc2..15c1f8c 100644
--- a/src/wok/proxy.py
+++ b/src/wok/proxy.py
@@ -130,7 +130,7 @@ def start_proxy(options):
"""Start nginx reverse proxy."""
_create_proxy_config(options)
# Restart system's nginx service to reload wok configuration
- cmd = ['systemctl', 'restart', 'nginx.service']
+ cmd = ['rc-service', 'nginx', 'restart']
output, error, retcode = run_command(cmd, silent=True)
if retcode != 0:
raise OperationFailed('WOKPROXY0001E', {'error': error})
|