Browse Source

Replace default api hostname in frontend.

pull/4/head
FireMasterK 9 months ago
parent
commit
2607157413
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
  1. 1
      .gitignore
  2. 2
      configure-instance.sh
  3. 1
      template/docker-compose.yml

1
.gitignore vendored

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

2
configure-instance.sh

@ -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

1
docker-compose.yml → template/docker-compose.yml

@ -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
Loading…
Cancel
Save