Replies: 1 comment
-
This solved my problem. Sure it would be helpful to include in clear instructions for home users which proxy everything out a single IP. Many thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using 2 different computers at my house. Both are behind a router. One computer has an NGINX reverse proxy that routes the various domains to the appropriate Virtual Machine. I set up the reverse proxy and the DNS so that Inventree is available at https://inventree.example.com/ I used a Let's Encrypt certificate at the NGINX reverse proxy. For everything else I do (NextCloud, php sites, Wordpress), this works perfectly. But, when I try to get Inventree working this way, the browser gives the error: "
".
I did update the .env file to reference "https://inventree.example.com" under the INVENTREE_SITE_URL parameter.
Is there something else I need to do to get it working behind an externally hosted NGINX reverse proxy?
UPDATE 1:
I edited .env --> INVENTREE_SITE_URL="http://inventree.example.com" to remove the S from https. Now I can access the site through the internet by going to http://inventree.example.com and it seems to redirect to https on its own. I assume the container is somehow doing some kind of certificate magic? Is this a secure enough configuration or should I be able to get to https://inventree.example.com without it first starting at http://inventree.example.com?
Also, it might be related but I cannot log in with the admin username/password I specified in the .env file. It says:
UPDATE 2:
------------- SOLUTION SO FAR -----------------
I added the following string to the end of the .env file and it seems to work now:
Maybe the documentation should include instructions on how to work in an external reverse proxy since it's not an uncommon configuration?
Beta Was this translation helpful? Give feedback.
All reactions