mirror of https://git.envs.net/envs/ops.git
update current nginx conf
This commit is contained in:
parent
25b8f32088
commit
7eec8a0b2f
|
@ -5,7 +5,7 @@ proxy_set_header X-Forwarded-Proto $scheme;
|
|||
|
||||
port_in_redirect off;
|
||||
proxy_redirect off;
|
||||
proxy_connect_timeout 300;
|
||||
proxy_connect_timeout 360;
|
||||
|
||||
#proxy_buffering off;
|
||||
#proxy_buffer_size 128k;
|
||||
|
|
|
@ -79,7 +79,8 @@ server {
|
|||
return 200 '{"m.server": "matrix.envs.net:443", "m.homeserver": {"base_url": "https://matrix.envs.net"}, "m.integrations": {"managers": [{"ui_url": "https://dimension.envs.net/riot", "api_url": "https://dimension.envs.net/api/v1/scalar"}, {"ui_url": "https://scalar.vector.im/", "api_url": "https://scalar.vector.im/api"}]}, "m.integrations_widget": {"url": "https://dimension.envs.net/riot", "data": {"api_url": "https://dimension.envs.net/api/v1/scalar"}}}';
|
||||
}
|
||||
|
||||
location ~* ^(\/_matrix|\/_synapse\/client) {
|
||||
location ~* ^(\/_matrix|\/_synapse) {
|
||||
proxy_read_timeout 3600s;
|
||||
include proxy_params;
|
||||
proxy_ssl_name $http_host;
|
||||
proxy_ssl_server_name on;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
### CODIMD.ENVS.NET - lxc ###
|
||||
server {
|
||||
include snippets/listen.conf;
|
||||
server_name codimd.envs.net;
|
||||
server_name hedgedoc.envs.net;
|
||||
|
||||
return 307 https://$host$request_uri;
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ server {
|
|||
server {
|
||||
include snippets/listen_ssl.conf;
|
||||
# include snippets/ddos_high.conf;
|
||||
server_name codimd.envs.net;
|
||||
server_name hedgedoc.envs.net;
|
||||
|
||||
include snippets/ssl.conf;
|
||||
include ssl/envs_net_wild.conf;
|
||||
|
@ -28,6 +28,26 @@ server {
|
|||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
|
||||
proxy_pass https://codimd.envs.net;
|
||||
proxy_pass https://hedgedoc.envs.net;
|
||||
}
|
||||
}
|
||||
|
||||
#ALIAS
|
||||
server {
|
||||
include snippets/listen.conf;
|
||||
server_name codimd.envs.net;
|
||||
|
||||
return 301 https://hedgedoc.envs.net/;
|
||||
}
|
||||
|
||||
server {
|
||||
include snippets/listen_ssl.conf;
|
||||
server_name codimd.envs.net;
|
||||
|
||||
include snippets/ssl.conf;
|
||||
include ssl/envs_net_wild.conf;
|
||||
include snippets/local_ssl_header.conf;
|
||||
|
||||
return 301 https://hedgedoc.envs.net/;
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
/etc/nginx/sites-available/codimd.envs.net.conf
|
|
@ -0,0 +1 @@
|
|||
/etc/nginx/sites-available/hedgedoc.envs.net.conf
|
Loading…
Reference in New Issue