mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-10-10 06:51:21 +02:00
28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
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})
|