30 lines
606 B
Nginx Configuration File
30 lines
606 B
Nginx Configuration File
load_module "modules/ngx_http_perl_module.so";
|
|
env GIREF_HOSTNAME;
|
|
|
|
events {
|
|
|
|
}
|
|
|
|
http {
|
|
error_log /etc/nginx/error_log.log warn;
|
|
client_max_body_size 20m;
|
|
perl_set $giref_hostname 'sub { return $ENV{"GIREF_HOSTNAME"}; }';
|
|
|
|
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
server {
|
|
server_name $giref_hostname;
|
|
|
|
location /theia {
|
|
proxy_pass http://theia:3000/;
|
|
rewrite ^/theia(/.*)$ $1 break;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
#rewrite ^/theia(.*)$ $1 break;
|
|
}
|
|
}
|
|
}
|