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:
parent
5776867687
commit
5fb5c36363
2 changed files with 3 additions and 2 deletions
|
@ -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 "";
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue