Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for file uploads #299

Merged
merged 2 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ RUN curl https://openresty.org/package/rhel/openresty2.repo > /etc/yum.repos.d/o
RUN microdnf -y --nodocs install augeas-libs krb5-libs psmisc xmlsec1 xmlsec1-openssl && \
microdnf -y remove "nginx-*" && microdnf -y --nodocs install openresty && \
mkdir /etc/nginx && \
mkdir --mode 770 /var/lib/nginx && \
mkdir --mode 770 /var/lib/nginx/tmp && \
chown -R 1001:root /var/lib/nginx && \
mkdir -p /usr/share/nginx/modules/ && \
mkdir /usr/local/openresty/nginx/client_body_temp && \
mkdir /usr/local/openresty/nginx/fastcgi_temp && \
mkdir /usr/local/openresty/nginx/proxy_temp && \
mkdir /usr/local/openresty/nginx/scgi_temp && \
mkdir /usr/local/openresty/nginx/uwsgi_temp && \
ln -s /usr/bin/openresty /usr/sbin/nginx && \
ln -s /usr/local/openresty/nginx/conf/mime.types /etc/nginx/mime.types && \
ln -s /usr/local/openresty/nginx/conf/uwsgi_params /etc/nginx/uwsgi_params && \
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
KIWI_VERSION=$(shell python3 setup.py --version)
ENTERPRISE_VERSION=$(KIWI_VERSION)-mt
ENTERPRISE_VERSION=$(KIWI_VERSION)-mt-20240302

.PHONY: echo-version
echo-version:
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ the `make` and `docker` commands, the `wheel` and `twine` Python packages.
Changelog
---------

### v13.1.1-mt-20240302 (02 Mar 2024)

- Fix for 404 errors when uploading files caused by
different default configuration between OpenResty and NGINX


### v13.1.1-mt (27 Feb 2024)

- Based on Kiwi TCMS v13.1.1
Expand Down
6 changes: 6 additions & 0 deletions etc/nginx.openresty
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ env NGX_UPLOADS_RATE;
env NGX_UPLOADS_BURST;

http {
client_body_temp_path /var/lib/nginx/tmp/client_body 1 2;
fastcgi_temp_path /var/lib/nginx/tmp/fastcgi 1 2;
proxy_temp_path /var/lib/nginx/tmp/proxy 1 2;
scgi_temp_path /var/lib/nginx/tmp/scgi 1 2;
uwsgi_temp_path /var/lib/nginx/tmp/uwsgi 1 2;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
Expand Down