Nginx Proxy Manager error 502 bad gateway

Hi guys,

So I got my Invoice Ninja working as a VM on TrueNAS Scale so now I’m trying to set up NGINX Proxy Manager, now I had the url pointing to a previous installation on another VM, all the instructions were followed the same with the installation, however this is the part where I’m struggling, I’m not sure what I’m doing wrong here, it keeps giving me a 502 Bad Gateway error.

my env details:
APP_NAME=“Invoice Ninja”
APP_ENV=production
APP_KEY=
APP_DEBUG=“false”

APP_URL=
REACT_URL=https://accounts.twelve20four.co.za:3001

DB_CONNECTION=“mysql”
MULTI_DB_ENABLED=false

DB_HOST=“localhost”
DB_DATABASE=“”
DB_USERNAME=“”
DB_PASSWORD=“”
DB_PORT=“3306”

DEMO_MODE=false

BROADCAST_DRIVER=log
LOG_CHANNEL=stack
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

POSTMARK_API_TOKEN=
REQUIRE_HTTPS=“false”

GOOGLE_MAPS_API_KEY=
ERROR_EMAIL=
TRUSTED_PROXIES=“*”

NINJA_ENVIRONMENT=“selfhost”

#options - snappdf / phantom / hosted_ninja
PDF_GENERATOR=hosted_ninja

PHANTOMJS_KEY=‘a-demo-key-with-low-quota-per-ip-address’
PHANTOMJS_SECRET=secret

UPDATE_SECRET=secret

DELETE_PDF_DAYS=60
DELETE_BACKUP_DAYS=60

COMPOSER_AUTH=‘{“github-oauth”: {“github.com”: “${{ secrets.GITHUB_TOKEN }}”}}’

GOOGLE_PLAY_PACKAGE_NAME=
APPSTORE_PASSWORD=

MICROSOFT_CLIENT_ID=
MICROSOFT_CLIENT_SECRET=
MICROSOFT_REDIRECT_URI=

APPLE_CLIENT_ID=
APPLE_CLIENT_SECRET=
APPLE_REDIRECT_URI=

NORDIGEN_SECRET_ID=
NORDIGEN_SECRET_KEY=

OPENEXCHANGE_APP_ID=

Please assist me.

Oh, and I also uploaded my company logo, but that’s also showing a broken image, and this is with accessing the IP directly.

Thanking you in advance

Hi,

I think the issue is more likely related to your web server configuration than any settings in the .env file.

Hi there,

Is there anything specific I can look into?

You may want to check similar posts on the forum

https://forum.invoiceninja.com/search?q=502%20order%3Alatest

You might wish to remove your app key and URL from your initial post. That is a security risk.

1 Like