diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-12-15 08:22:05 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-12-15 08:22:10 +0000 |
commit | ccc3af0ca34b74ca8d74c4f6d531a311b8204c70 (patch) | |
tree | 1c9c7afb1f28cc0b24415c228b9c853e716e2435 /testing/wok/alpine-specific-wokd.patch | |
parent | 9ce790800cee74595f4e888c37cece949d87997b (diff) | |
download | aports-ccc3af0ca34b74ca8d74c4f6d531a311b8204c70.tar.bz2 aports-ccc3af0ca34b74ca8d74c4f6d531a311b8204c70.tar.xz |
testing/wok: new aport
Diffstat (limited to 'testing/wok/alpine-specific-wokd.patch')
-rw-r--r-- | testing/wok/alpine-specific-wokd.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/wok/alpine-specific-wokd.patch b/testing/wok/alpine-specific-wokd.patch new file mode 100644 index 0000000000..5f9599c3ec --- /dev/null +++ b/testing/wok/alpine-specific-wokd.patch @@ -0,0 +1,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}) |