mirror of
https://github.com/TeamPiped/Piped-Docker.git
synced 2024-12-12 21:30:41 +05:30
Replace default api hostname in frontend.
This commit is contained in:
parent
ca989a2a6b
commit
2607157413
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
config/
|
config/
|
||||||
data/
|
data/
|
||||||
|
/docker-compose.yml
|
||||||
|
@ -14,3 +14,5 @@ cp -r template/ config/
|
|||||||
sed -i "s/FRONTEND_HOSTNAME/$frontend/g" config/*
|
sed -i "s/FRONTEND_HOSTNAME/$frontend/g" config/*
|
||||||
sed -i "s/BACKEND_HOSTNAME/$backend/g" config/*
|
sed -i "s/BACKEND_HOSTNAME/$backend/g" config/*
|
||||||
sed -i "s/PROXY_HOSTNAME/$proxy/g" config/*
|
sed -i "s/PROXY_HOSTNAME/$proxy/g" config/*
|
||||||
|
|
||||||
|
mv config/docker-compose.yml docker-compose.yml
|
||||||
|
@ -5,6 +5,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- piped
|
- piped
|
||||||
container_name: piped-frontend
|
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:
|
ytproxy:
|
||||||
image: 1337kavin/ytproxy:latest
|
image: 1337kavin/ytproxy:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user