Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3948592
D3620.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D3620.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D3620: Proxy request for wurf -U
Attached
Detach File
Event Timeline
Log In to Comment