all repos — fixyoutube-go @ 4eded4e2bb67d13cb245ebec363e2d9f3195c11d

A better way to embed YouTube videos everywhere (inspired by FixTweet).

docker/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 http2;
 6    listen [::]:443 ssl http2;
 7
 8    server_name y.*; # change your subdomain here
 9
10    include /config/nginx/ssl.conf;
11
12    client_max_body_size 0;
13
14    location / {
15        include /config/nginx/proxy.conf;
16        include /config/nginx/resolver.conf;
17        set $upstream_app fixyoutube-go;
18        set $upstream_port 3000;
19        set $upstream_proto http;
20        proxy_pass $upstream_proto://$upstream_app:$upstream_port;
21    }
22}