diff options
author | sss <sss@dark-alexandr.net> | 2023-01-17 00:38:19 +0300 |
---|---|---|
committer | sss <sss@dark-alexandr.net> | 2023-01-17 00:38:19 +0300 |
commit | cc3f33db7a8d3c4ad373e646b199808e01bc5d9b (patch) | |
tree | ec09d690c7656ab5f2cc72607e05fb359c24d8b2 /doc/nginx_location |
added webrdp public code
Diffstat (limited to 'doc/nginx_location')
-rw-r--r-- | doc/nginx_location | 31 |
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; + } + + #.... + +} + |