swag/fixyoutube.subdomain.conf (view raw)
1# make sure that your app container is named fixyoutube
2# make sure that your dns has a cname set for fixyoutube
3
4server {
5 listen 443 ssl;
6 listen [::]:443 ssl;
7 http2 on;
8
9 server_name y.*; # change your subdomain here
10
11 include /config/nginx/ssl.conf;
12
13 client_max_body_size 0;
14
15 location / {
16 include /config/nginx/proxy.conf;
17 include /config/nginx/resolver.conf;
18 set $upstream_app fixyoutube;
19 set $upstream_port 3000;
20 set $upstream_proto http;
21 proxy_pass $upstream_proto://$upstream_app:$upstream_port;
22 }
23}