mirror of
https://github.com/YunoHost-Apps/invidious_ynh.git
synced 2024-09-03 19:15:55 +02:00
Testing (#9)
* Make `/embed/` links work properly (#8) Gives them the right headers and redirects them to the right place
This commit is contained in:
parent
50206d7b62
commit
d73aac6752
2 changed files with 17 additions and 1 deletions
|
@ -22,5 +22,21 @@ location __PATH__/ {
|
|||
}
|
||||
|
||||
location __PATH__/embed/ {
|
||||
# Force usage of https
|
||||
if ($scheme = http) {
|
||||
rewrite ^ https://$server_name$request_uri? permanent;
|
||||
}
|
||||
|
||||
proxy_pass http://127.0.0.1:3000/embed/;
|
||||
proxy_redirect off;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Host $server_name;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
more_set_headers "X-Frame-Options : ALLOWALL";
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"en": "Alternative front-end to YouTube",
|
||||
"fr": "Front-end alternatif à YouTube"
|
||||
},
|
||||
"version": "0.20.1~ynh3",
|
||||
"version": "0.20.1~ynh4",
|
||||
"url": "https://invidio.us/",
|
||||
"license": "GPL-3.0-only",
|
||||
"maintainer": {
|
||||
|
|
Loading…
Add table
Reference in a new issue