Hi guys docker installation here. I have two little problems with InvoiceNinja exposed under Nginx Proxy Manager and Cloudflare.
The first one is about Cloud Portal registration where if I open the generated link I receive an HTTP 400 Bad Request and it doesn’t work with domain and in local both… any ideas?
Another problem is about PDF Generator, with the domain it doesn’t work, with local IP works.
I receive this error: PlatformException(error, NoSuchMethodError: method not found:‘getDocument’ on null,null,null)
Opening chrome console I noticed this line
Mixed Content: The page at 'https://invoice.domainname.com/#/' was loaded over HTTPS, but requested an insecure script 'http://invoice.domainname.com/js/pdf.min.js'. This request has been blocked; the content must be served over HTTPS.
My env file: # IN application vars APP_URL=https://invoice.domainname.com APP_KEY=base64:.... APP_DEBUG=false REQUIRE_HTTPS=false PHANTOMJS_PDF_GENERATION=false PDF_GENERATOR=snappdf TRUSTED_PROXIES='22.214.171.124/22, 126.96.36.199/22, 188.8.131.52/22, 184.108.40.206/13, 220.127.116.11/14, 18.104.22.168/18, 22.214.171.124/22, 126.96.36.199/18, 188.8.131.52/15, 184.108.40.206/13, 220.127.116.11/20, 18.104.22.168/20, 22.214.171.124/20, 126.96.36.199/22, 188.8.131.52/17' #Cloudflare IPs QUEUE_CONNECTION=database # DB connection DB_HOST=db DB_PORT=3306 DB_DATABASE=ninja DB_USERNAME=ninja DB_PASSWORD=apassword # Create initial user # Default to these values if empty # IN_USER_EMAILfirstname.lastname@example.org # IN_PASSWORD=changeme! IN_USER_EMAIL= IN_PASSWORD= # MySQL MYSQL_ROOT_PASSWORD=asuperpassword MYSQL_USER=ninja MYSQL_PASSWORD=apassword MYSQL_DATABASE=ninja # V4 env vars # DB_STRICT=false # APP_CIPHER=AES-256-CBC