diff --git a/new-backend/Dockerfile.tunnel b/new-backend/Dockerfile.tunnel index 0eb09e5..13395a3 100644 --- a/new-backend/Dockerfile.tunnel +++ b/new-backend/Dockerfile.tunnel @@ -34,6 +34,7 @@ RUN mkdir -p /etc/cloudflared # Copy the certificate file and config COPY cert.pem /etc/cloudflared/cert.pem +COPY credentials.json /etc/cloudflared/credentials.json COPY config.json /etc/cloudflared/config.json # Copy the binary from builder @@ -55,7 +56,7 @@ RUN echo "[supervisord]" > /etc/supervisor/conf.d/supervisord.conf && \ echo "stderr_logfile_maxbytes=0" >> /etc/supervisor/conf.d/supervisord.conf && \ echo "" >> /etc/supervisor/conf.d/supervisord.conf && \ echo "[program:cloudflared]" >> /etc/supervisor/conf.d/supervisord.conf && \ - echo "command=cloudflared tunnel --url http://localhost:8080 run" >> /etc/supervisor/conf.d/supervisord.conf && \ + echo "command=cloudflared tunnel --config /etc/cloudflared/config.json run" >> /etc/supervisor/conf.d/supervisord.conf && \ echo "autostart=true" >> /etc/supervisor/conf.d/supervisord.conf && \ echo "autorestart=true" >> /etc/supervisor/conf.d/supervisord.conf && \ echo "stdout_logfile=/dev/stdout" >> /etc/supervisor/conf.d/supervisord.conf && \ diff --git a/new-backend/config.json b/new-backend/config.json index 75eb97b..814bcd6 100644 --- a/new-backend/config.json +++ b/new-backend/config.json @@ -1,6 +1,6 @@ { - "tunnel": "YOUR_TUNNEL_ID_HERE", - "credentials-file": "/etc/cloudflared/cert.pem", + "tunnel": "5d2682ef-0b5b-47e5-b0fa-ad48968ce016", + "credentials-file": "/etc/cloudflared/credentials.json", "ingress": [ { "hostname": "api.ishikabhoyar.tech", diff --git a/new-backend/credentials.json b/new-backend/credentials.json new file mode 100644 index 0000000..922f3fd --- /dev/null +++ b/new-backend/credentials.json @@ -0,0 +1 @@ +{"AccountTag":"453afb9373a00a55876e6127cf0efd97","TunnelSecret":"02VClcBt+1nxxu8ioUzw/UizXtKKh4X7UUpneVbfB/Y=","TunnelID":"5d2682ef-0b5b-47e5-b0fa-ad48968ce016"}