all repos — FixYouTube-legacy @ 46f1e5ddef0eedaac2647824ffb9b566fa97c94e

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;
18        set $upstream_port 80;
19        set $upstream_proto http;
20        proxy_pass $upstream_proto://$upstream_app:$upstream_port;
21    }
22}