summaryrefslogtreecommitdiff
path: root/doc/nginx_location
diff options
context:
space:
mode:
authorsss <sss@dark-alexandr.net>2023-01-17 00:38:19 +0300
committersss <sss@dark-alexandr.net>2023-01-17 00:38:19 +0300
commitcc3f33db7a8d3c4ad373e646b199808e01bc5d9b (patch)
treeec09d690c7656ab5f2cc72607e05fb359c24d8b2 /doc/nginx_location
added webrdp public code
Diffstat (limited to 'doc/nginx_location')
-rw-r--r--doc/nginx_location31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/nginx_location b/doc/nginx_location
new file mode 100644
index 0000000..8b5e396
--- /dev/null
+++ b/doc/nginx_location
@@ -0,0 +1,31 @@
+#nginx location example
+
+#....
+
+#NOTE: "Upgrade", first letter must be large
+map $http_upgrade $connection_upgrade {
+ default Upgrade;
+ '' close;
+}
+
+#......
+
+server {
+
+ #....
+
+ #NOTE: no trailing slash '/' in location
+ location /wrdp {
+
+ #address of webrdp listen port/socket should be set here
+ proxy_pass http://192.168.0.2:8080;
+
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection $connection_upgrade;
+ }
+
+ #....
+
+}
+