1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/piped_ynh.git synced 2024-09-03 20:05:54 +02:00

Fixed nginx conf.

This commit is contained in:
orhtej2 2024-01-28 19:08:20 +01:00
parent 5776867687
commit 5fb5c36363
2 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,4 @@
rewrite ^__PATH__$ __PATH__/ permanent;
#rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/api/ {
@ -10,6 +10,7 @@ location __PATH__/api/ {
}
location ~ (__PATH__/proxy/videoplayback|__PATH__/proxy/api/v4/|__PATH__/proxy/api/manifest/) {
rewrite ^/proxy/(.*) /$1 break;
proxy_buffering on;
proxy_buffers 1024 16k;
proxy_set_header X-Forwarded-For "";

View file

@ -51,7 +51,7 @@ popd
mv $install_dir/build/dist $install_dir
pushd $install_dir/dist
sed -i s/pipedapi.kavin.rocks/"$domain\/api"/g assets/*
sed -i s/pipedapi.kavin.rocks/"$domain\\/api"/g assets/*
popd
chown -R $app:www-data "$install_dir/dist"
chmod -R 755 "$install_dir/dist"