Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions deploy/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ services:
- narvana-builds:/var/lib/narvana/builds
environment:
DATABASE_URL: postgres://narvana:${POSTGRES_PASSWORD}@postgres:5432/narvana?sslmode=disable
JWT_SECRET: ${JWT_SECRET}
PODMAN_SOCKET: unix:///run/podman/podman.sock
WORKER_WORKDIR: /var/lib/narvana/builds
WORKER_MAX_CONCURRENCY: ${WORKER_MAX_CONCURRENCY:-4}
Expand Down
8 changes: 4 additions & 4 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ wait_for_healthy() {
# -----------------------------------------------------------------------------

print_success() {
# Try multiple services to get public IP
PUBLIC_IP=$(curl -sf --max-time 3 https://ifconfig.me 2>/dev/null || \
curl -sf --max-time 3 https://api.ipify.org 2>/dev/null || \
curl -sf --max-time 3 https://icanhazip.com 2>/dev/null || \
# Try multiple services to get public IPv4 (use -4 to force IPv4)
PUBLIC_IP=$(curl -4 -sf --max-time 3 https://ifconfig.me 2>/dev/null || \
curl -4 -sf --max-time 3 https://api.ipify.org 2>/dev/null || \
curl -4 -sf --max-time 3 https://icanhazip.com 2>/dev/null || \
hostname -I 2>/dev/null | awk '{print $1}' || \
echo "YOUR_SERVER_IP")

Expand Down