Added reverse proxy configs for mii

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
This commit is contained in:
TuDatTr
2023-04-14 14:01:17 +02:00
parent 7cd43fb8a8
commit 6c0ea656eb
19 changed files with 234 additions and 108 deletions

View File

@@ -5,6 +5,10 @@ services:
container_name: swag
networks:
net: {}
dns:
- {{ aya01_ip }}
- {{ pi_ip }}
- 1.1.1.1
cap_add:
- NET_ADMIN
environment:
@@ -13,11 +17,11 @@ services:
- TZ={{ timezone }}
- URL={{ remote_domain }}
- VALIDATION=http
- SUBDOMAINS=www, #optional
- SUBDOMAINS={{ swag_subdomains }} #optional
- CERTPROVIDER= #optional
- DNSPLUGIN=cloudflare #optional
- PROPAGATION= #optional
- EMAIL= #optional
- EMAIL={{ swag_email }} #optional
- ONLY_SUBDOMAINS=false #optional
- EXTRA_DOMAINS= #optional
- STAGING=false #optional

View File

@@ -0,0 +1,30 @@
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name plex.tudattr.dev;
include /config/nginx/ssl.conf;
client_max_body_size 0;
proxy_redirect off;
proxy_buffering off;
location / {
include /config/nginx/resolver.conf;
proxy_pass http://plex.aya01.borg.land;
proxy_set_header X-Plex-Client-Identifier $http_x_plex_client_identifier;
proxy_set_header X-Plex-Device $http_x_plex_device;
proxy_set_header X-Plex-Device-Name $http_x_plex_device_name;
proxy_set_header X-Plex-Platform $http_x_plex_platform;
proxy_set_header X-Plex-Platform-Version $http_x_plex_platform_version;
proxy_set_header X-Plex-Product $http_x_plex_product;
proxy_set_header X-Plex-Token $http_x_plex_token;
proxy_set_header X-Plex-Version $http_x_plex_version;
proxy_set_header X-Plex-Nocache $http_x_plex_nocache;
proxy_set_header X-Plex-Provides $http_x_plex_provides;
proxy_set_header X-Plex-Device-Vendor $http_x_plex_device_vendor;
proxy_set_header X-Plex-Model $http_x_plex_model;
}
}

View File

@@ -0,0 +1,17 @@
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name status.tudattr.dev;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/resolver.conf;
proxy_pass http://uptime.aya01.borg.land;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}