Page MenuHomeDevCentral

D3620.diff
No OneTemporary

D3620.diff

diff --git a/roles/devserver/webserver-home/files/001-server.conf b/roles/devserver/webserver-home/files/001-server.conf
--- a/roles/devserver/webserver-home/files/001-server.conf
+++ b/roles/devserver/webserver-home/files/001-server.conf
@@ -62,4 +62,17 @@
autoindex on;
}
+ ###
+ ### Upload for wurf
+ ###
+
+ location /upload {
+ proxy_pass http://localhost:8080;
+
+ include includes/proxy_upload_params;
+ proxy_redirect off;
+
+ client_max_body_size 1G;
+ }
+
}
diff --git a/roles/webserver-core/nginx/files/includes/proxy_upload_params b/roles/webserver-core/nginx/files/includes/proxy_upload_params
new file mode 100644
--- /dev/null
+++ b/roles/webserver-core/nginx/files/includes/proxy_upload_params
@@ -0,0 +1,37 @@
+# -------------------------------------------------------------
+# nginx :: configuration :: proxy
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Description: nginx proxy configuration
+# License: Trivial work, not eligible for copyright.
+# Source file: roles/webserver-core/nginx/files/includes/proxy_upload_params
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+# -------------------------------------------------------------
+# Headers
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+proxy_set_header X-Real-IP $remote_addr;
+proxy_set_header Host $http_host;
+proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+proxy_set_header X-Forwarded-Proto $scheme;
+
+# -------------------------------------------------------------
+# Other proxy parameters
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+proxy_connect_timeout 90;
+proxy_send_timeout 90;
+proxy_read_timeout 90;
+
+proxy_buffer_size 4k;
+proxy_buffers 4 32k;
+proxy_busy_buffers_size 64k;
+proxy_temp_file_write_size 64k;

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 28, 12:25 (7 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2318530
Default Alt Text
D3620.diff (2 KB)

Event Timeline