Removed unused site-confs and added stub template
Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
## Version 2023/02/05
|
||||
# make sure that your code-server container is named code-server
|
||||
# make sure that your dns has a cname set for code-server
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
|
||||
server_name {{ code_host }}.{{ remote_domain }};
|
||||
|
||||
include /config/nginx/ssl.conf;
|
||||
|
||||
client_max_body_size 0;
|
||||
|
||||
location / {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{aya01_ip}}:{{ code_port }};
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
|
||||
server_name {{ hass_host }}.{{ backup_domain }};
|
||||
|
||||
include /config/nginx/ssl.conf;
|
||||
|
||||
client_max_body_size 0;
|
||||
|
||||
location / {
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ hass_host }}.{{ pi_host }}.{{ local_domain }};
|
||||
}
|
||||
|
||||
location ~ ^/(api|local|media)/ {
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ hass_host }}.{{ pi_host }}.{{ local_domain }};
|
||||
}
|
||||
}
|
||||
@@ -1,84 +0,0 @@
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
|
||||
server_name {{ qbit_host }}.{{ backup_domain }};
|
||||
|
||||
include /config/nginx/ssl.conf;
|
||||
|
||||
client_max_body_size 0;
|
||||
|
||||
location / {
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/api {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||
|
||||
rewrite /qbittorrent(.*) $1 break;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/command {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||
|
||||
rewrite /qbittorrent(.*) $1 break;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/query {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||
|
||||
rewrite /qbittorrent(.*) $1 break;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/login {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||
|
||||
rewrite /qbittorrent(.*) $1 break;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/sync {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||
|
||||
rewrite /qbittorrent(.*) $1 break;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/scripts {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||
|
||||
rewrite /qbittorrent(.*) $1 break;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
|
||||
server_name {{ stub_host }}.{{ local_domain }};
|
||||
|
||||
access_log off;
|
||||
allow 192.168.20.12;
|
||||
deny all;
|
||||
|
||||
include /config/nginx/ssl.conf;
|
||||
|
||||
client_max_body_size 0;
|
||||
|
||||
location /stub_status {
|
||||
include /config/nginx/resolver.conf;
|
||||
stub_status on;
|
||||
proxy_pass http://{{ stub_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
|
||||
server_name {{ zoneminder_host }}.{{ backup_domain }};
|
||||
|
||||
include /config/nginx/ssl.conf;
|
||||
|
||||
client_max_body_size 0;
|
||||
location / {
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ zoneminder_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user