Replace default api hostname in frontend.

This commit is contained in:
FireMasterK 2021-08-25 17:21:03 +05:30
parent ca989a2a6b
commit 2607157413
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
3 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
config/
data/
/docker-compose.yml

View File

@ -14,3 +14,5 @@ cp -r template/ config/
sed -i "s/FRONTEND_HOSTNAME/$frontend/g" config/*
sed -i "s/BACKEND_HOSTNAME/$backend/g" config/*
sed -i "s/PROXY_HOSTNAME/$proxy/g" config/*
mv config/docker-compose.yml docker-compose.yml

View File

@ -5,6 +5,7 @@ services:
depends_on:
- piped
container_name: piped-frontend
entrypoint: ash -c 'sed -i s/pipedapi.kavin.rocks/BACKEND_HOSTNAME/g /usr/share/nginx/html/js/* && /docker-entrypoint.sh && nginx -g "daemon off;"'
ytproxy:
image: 1337kavin/ytproxy:latest
restart: unless-stopped