blob: 2358b86c0a7554783a2cf133c977e82dce0e9228 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
worker_processes 1;
pcre_jit on;
error_log /tmp/nginx_error.log error;
pid ./nginx.pid;
events {
worker_connections 512;
use epoll;
accept_mutex off;
multi_accept on;
}
http {
charset utf-8;
access_log off;
server_tokens off;
sendfile on;
sendfile_max_chunk 4M;
client_max_body_size 16m;
map $http_upigrade $connection_upgrade {
default Upgrade;
'' close;
}
server {
listen 192.168.0.2:8080;
location /rdp {
alias /home/sss/git/work/rozhuk_ivan/backend/www;
index index.html;
}
location /wrdp {
#address of webrdp listen port/socket should be set here
proxy_pass http://192.168.0.2:8081;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
}
}
|