forked from domcloud/bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tools-init.nginx.conf
45 lines (43 loc) · 1.47 KB
/
tools-init.nginx.conf
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
45
server {
root ~/public_html/public;
location /phpmyadmin/ {
root ~/public_html/;
location ~ \.php(/|$) {
try_files $uri =404;
fastcgi_pass localhost:1234;
}
}
location /phppgadmin/ {
root ~/public_html/;
location ~ \.php(/|$) {
try_files $uri =404;
fastcgi_pass localhost:1234;
}
}
location /webssh/ {
root ~/public_html/webssh/webssh/static;
passenger_app_root ~/public_html/webssh;
passenger_enabled on;
passenger_app_start_command "python run.py --port=$PORT";
passenger_base_uri "/webssh";
rewrite ^/webssh/(.*)$ /$1 break;
passenger_document_root ~/public_html/webssh/webssh/static;
}
location /ssh/ {
root /home/bridge/public_html/webssh2/app/client/public;
passenger_app_root /home/bridge/public_html/webssh2/app;
passenger_app_start_command "env PORT=$PORT node app.js";
passenger_document_root /home/bridge/public_html/webssh2/app/client/public;
passenger_enabled on;
}
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 1200s;
proxy_pass http://127.0.0.1:2223/;
}
}