mirror of https://git.envs.net/envs/ops.git
update current nginx configs from server
This commit is contained in:
parent
9e96f24dbc
commit
ea352a66d6
|
@ -0,0 +1,18 @@
|
|||
### DNS.ENVS.NET - local redirect ###
|
||||
server {
|
||||
listen 5.199.130.141:80;
|
||||
server_name dns.envs.net;
|
||||
|
||||
return 307 https://$server_name$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 5.199.130.141:443 ssl http2;
|
||||
server_name dns.envs.net;
|
||||
|
||||
include snippets/ssl.conf;
|
||||
include ssl/envs_net_wild.conf;
|
||||
include snippets/local_ssl_header.conf;
|
||||
|
||||
return 301 https://help.envs.net/#public-dns-server;
|
||||
}
|
|
@ -67,7 +67,7 @@ server {
|
|||
# }
|
||||
# }
|
||||
|
||||
# matrix
|
||||
## matrix
|
||||
location /.well-known/matrix/support {
|
||||
add_header Access-Control-Allow-Origin "*";
|
||||
add_header Content-Type application/json;
|
||||
|
@ -80,14 +80,7 @@ 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 {
|
||||
include proxy_params;
|
||||
proxy_ssl_name $http_host;
|
||||
proxy_ssl_server_name on;
|
||||
proxy_pass https://matrix.envs.net;
|
||||
}
|
||||
|
||||
location /_synapse {
|
||||
location ~* ^(\/_matrix|\/_synapse) {
|
||||
include proxy_params;
|
||||
proxy_ssl_name $http_host;
|
||||
proxy_ssl_server_name on;
|
||||
|
|
|
@ -1,56 +0,0 @@
|
|||
### TB.ENVS.NET - lxc ###
|
||||
server {
|
||||
include snippets/listen.conf;
|
||||
# include snippets/ddos_def.conf;
|
||||
server_name tb.envs.net;
|
||||
|
||||
return 307 https://$host$request_uri;
|
||||
}
|
||||
|
||||
# SSL
|
||||
server {
|
||||
include snippets/listen_ssl.conf;
|
||||
# include snippets/ddos_def.conf;
|
||||
server_name tb.envs.net;
|
||||
|
||||
error_log /var/log/nginx/tb.envs.net-error.log crit;
|
||||
|
||||
include snippets/ssl.conf;
|
||||
include ssl/envs_net_wild.conf;
|
||||
|
||||
client_max_body_size 256M;
|
||||
|
||||
location / {
|
||||
include proxy_params;
|
||||
proxy_ssl_name $http_host;
|
||||
proxy_ssl_server_name on;
|
||||
proxy_pass https://tb.envs.net;
|
||||
}
|
||||
|
||||
include snippets/favicon;
|
||||
}
|
||||
|
||||
#ALIAS
|
||||
server {
|
||||
include snippets/listen.conf;
|
||||
# include snippets/ddos_def.conf;
|
||||
server_name termbin.envs.net;
|
||||
|
||||
location / {
|
||||
return 301 https://tb.envs.net/;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
include snippets/listen_ssl.conf;
|
||||
# include snippets/ddos_def.conf;
|
||||
server_name termbin.envs.net;
|
||||
|
||||
include snippets/ssl.conf;
|
||||
include ssl/envs_net_wild.conf;
|
||||
include snippets/local_ssl_header.conf;
|
||||
|
||||
location / {
|
||||
return 301 https://tb.envs.net/;
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
/etc/nginx/sites-available/dns.envs.net.conf
|
|
@ -1 +0,0 @@
|
|||
/etc/nginx/sites-available/stats.envs.net.conf
|
Loading…
Reference in New Issue