-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
83 additions
and
81 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,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 ~/public_html/webssh2/app/client/public; | ||
passenger_app_root ~/public_html/webssh2/app; | ||
passenger_enabled on; | ||
passenger_base_uri "/ssh"; | ||
passenger_sticky_sessions on; | ||
rewrite ^/webssh2/(.*)$ /$1 break; | ||
passenger_document_root ~/public_html/webssh2/app/client/public; | ||
} | ||
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; | ||
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_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/; | ||
} | ||
} | ||
proxy_pass http://127.0.0.1:2223/; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,32 @@ | ||
root: public_html/public | ||
nginx: | ||
locations: | ||
- match: /phpmyadmin/ | ||
root: public_html | ||
fastcgi: on | ||
- match: /phppgadmin/ | ||
root: public_html | ||
fastcgi: on | ||
webssh: | ||
match: /webssh/ | ||
root: public_html/webssh/webssh/static | ||
rewrite: ^/webssh/(.*)$ /$1 break | ||
passenger: | ||
enabled: on | ||
app_start_command: python run.py --port=$PORT | ||
base_uri: /webssh | ||
document_root: public_html/webssh/webssh/static | ||
webssh2: | ||
match: /webssh2/ | ||
root: public_html/webssh2/app/client/public | ||
rewrite: ^/webssh/(.*)$ /$1 break | ||
passenger: | ||
enabled: on | ||
base_uri: /webssh2 | ||
document_root: public_html/webssh2/app/client/public | ||
app_root: public_html/webssh2/app | ||
- fastcgi: 'on' | ||
root: public_html/ | ||
passenger: | ||
enabled: 'off' | ||
match: /phpmyadmin/ | ||
- fastcgi: 'on' | ||
root: public_html/ | ||
passenger: | ||
enabled: 'off' | ||
match: /phppgadmin/ | ||
- root: public_html/webssh/webssh/static | ||
passenger: | ||
app_root: public_html/webssh | ||
enabled: 'on' | ||
app_start_command: python run.py --port=$PORT | ||
document_root: public_html/webssh/webssh/static | ||
rewrite: ^/webssh/(.*)$ /$1 break | ||
match: /webssh/ | ||
- root: public_html/webssh2/app/client/public | ||
passenger: | ||
app_root: public_html/webssh2/app | ||
app_start_command: env PORT=$PORT node app.js | ||
enabled: 'on' | ||
document_root: public_html/webssh2/app/client/public | ||
match: /ssh/ | ||
- match: / | ||
fastcgi: 'on' | ||
index: index.html index.php | ||
root: public_html/public | ||
ssl: 'on' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters