-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #208 from introlab/dev
Main merge for 1.2.1 release
- Loading branch information
Showing
51 changed files
with
2,057 additions
and
229 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,164 @@ | ||
# location /bureau/ { | ||
# proxy_pass http://127.0.0.1:4050/; | ||
# proxy_redirect http://$host/ https://$host:$server_port/; | ||
# proxy_set_header X-ExternalPort $server_port; | ||
# proxy_set_header X-ExternalHost $host; | ||
# proxy_set_header X_ExternalServer $server_name; | ||
# proxy_set_header Host $host; | ||
# proxy_set_header X-Real-IP $remote_addr; | ||
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
# proxy_set_header X-Forwarded-Proto $scheme; | ||
# proxy_set_header X-Scheme $scheme; | ||
# proxy_set_header X-Script-Name /bureau; | ||
# } | ||
|
||
location /dance/ { | ||
client_max_body_size 2G; | ||
proxy_pass http://127.0.0.1:4060/; | ||
proxy_redirect http://$host/ https://$host:$server_port/; | ||
proxy_set_header X-ExternalPort $server_port; | ||
proxy_set_header X-ExternalHost $host; | ||
proxy_set_header X_ExternalServer $server_name; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header X-Scheme $scheme; | ||
proxy_set_header X-Script-Name /dance; | ||
} | ||
|
||
location ~ ^/webrtc_dance/([0-9]+)/(.*)$ { | ||
resolver 127.0.0.1; | ||
proxy_pass http://127.0.0.1:$1/$2$is_args$args; | ||
proxy_set_header X-ExternalPort $server_port; | ||
proxy_set_header X-ExternalHost $host; | ||
proxy_set_header X_ExternalServer $server_name; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header X-Scheme $scheme; | ||
proxy_set_header X-Script-Name /webrtc_dance/; | ||
|
||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
} | ||
|
||
location /robot/ { | ||
proxy_pass http://127.0.0.1:4080/; | ||
proxy_redirect http://$host/ https://$host:$server_port/; | ||
proxy_set_header X-ExternalPort $server_port; | ||
proxy_set_header X-ExternalHost $host; | ||
proxy_set_header X_ExternalServer $server_name; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header X-Scheme $scheme; | ||
proxy_set_header X-Script-Name /robot; | ||
} | ||
|
||
location /webportal/ { | ||
proxy_pass http://127.0.0.1:4090/; | ||
proxy_redirect http://$host/ https://$host:$server_port/; | ||
proxy_set_header X-ExternalPort $server_port; | ||
proxy_set_header X-ExternalHost $host; | ||
proxy_set_header X_ExternalServer $server_name; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header X-Scheme $scheme; | ||
proxy_set_header X-Script-Name /webportal; | ||
} | ||
|
||
# location /room/ { | ||
# proxy_pass http://localhost:5000/; | ||
# proxy_redirect http://$host/ https://$host:$server_port/; | ||
# proxy_set_header X-ExternalPort $server_port; | ||
# proxy_set_header X-ExternalHost $host; | ||
# proxy_set_header X_ExternalServer $server_name; | ||
# proxy_set_header Host $host; | ||
# proxy_set_header X-Real-IP $remote_addr; | ||
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
# proxy_set_header X-Forwarded-Proto $scheme; | ||
# proxy_set_header X-Scheme $scheme; | ||
# proxy_set_header X-Script-Name /room; | ||
# } | ||
|
||
location /example/ { | ||
proxy_pass http://127.0.0.1:5010/; | ||
proxy_redirect http://$host/ https://$host:$server_port/; | ||
proxy_set_header X-ExternalPort $server_port; | ||
proxy_set_header X-ExternalHost $host; | ||
proxy_set_header X_ExternalServer $server_name; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header X-Scheme $scheme; | ||
proxy_set_header X-Script-Name /example; | ||
} | ||
|
||
location /recrutement/ { | ||
proxy_pass http://127.0.0.1:5020/; | ||
proxy_redirect http://$host/ https://$host:$server_port/; | ||
proxy_set_header X-ExternalPort $server_port; | ||
proxy_set_header X-ExternalHost $host; | ||
proxy_set_header X_ExternalServer $server_name; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header X-Scheme $scheme; | ||
proxy_set_header X-Script-Name /webportal; | ||
} | ||
|
||
######################################################################################################################## | ||
|
||
######################################################################################################################## | ||
# webrtc_teleop on port defined in url tilda means will have regexp, | ||
######################################################################################################################## | ||
location ~ ^/webrtc_teleop/.*$ { | ||
|
||
# Here is a tool to help you debug these regular expressions https://regex101.com/ | ||
# The order of these rewrites are important! | ||
|
||
# Handle request ending with js/*.js or css css/*.css (Styles and scripts files in static folder) | ||
rewrite ^/webrtc_teleop/([0-9]+)/.*((?>js|css)/.*\.(?>css|js|map))$ /signaling_server/$1/$2 last; | ||
|
||
# Handle request for /iceservers | ||
rewrite ^/webrtc_teleop/([0-9]+)/iceservers$ /signaling_server/$1/iceservers last; | ||
|
||
# Handle request for /socket.io | ||
rewrite ^/webrtc_teleop/([0-9]+)/socket.io(.*)$ /signaling_server/$1/socket.io$2 last; | ||
|
||
# Handle request with no index.html and not ending with .css or .js (Application's router) | ||
rewrite ^/webrtc_teleop/([0-9]+)/((?!index.html).*(?<!\.css|\.js))$ /signaling_server/$1/index.html last; | ||
|
||
# Redirection to the proxy | ||
rewrite ^/webrtc_teleop/(.*)$ /signaling_server/$1$is_args$args last; | ||
|
||
# No request has matched, Forbiden | ||
return 403; | ||
} | ||
|
||
location ~ ^/signaling_server/(.*)$ { | ||
proxy_pass http://127.0.0.1:$1$is_args$args; | ||
proxy_set_header X-ExternalPort $server_port; | ||
proxy_set_header X-ExternalHost $host; | ||
proxy_set_header X_ExternalServer $server_name; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header X-Scheme $scheme; | ||
# proxy_set_header X-Script-Name /webrtc_teleop/; | ||
|
||
# Websocket upgrades | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
} | ||
|
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 |
---|---|---|
|
@@ -53,6 +53,7 @@ http { | |
ssl_prefer_server_ciphers on; | ||
|
||
include opentera.conf; | ||
include external_services.conf; | ||
} | ||
|
||
|
||
|
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.