all repos — gopipe @ 83cd0bd9237351f9da3ef236617c2f915f2277c4

Embed YouTube videos on Telegram, Discord and more!

swag/fixyoutube.subdomain.conf (view raw)

 1# make sure that your app container is named gopipe
 2# make sure that your dns has a cname set for gopipe
 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 gopipe;
19        set $upstream_port 3000;
20        set $upstream_proto http;
21        proxy_pass $upstream_proto://$upstream_app:$upstream_port;
22    }
23}