You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: "
inventree.example.com redirected you too many times
Try deleting your cookies.
ERR_TOO_MANY_REDIRECTS
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:
Authentication Failure
You have been logged out from InvenTree.
UPDATE 2:
------------- SOLUTION SO FAR -----------------
I added the following string to the end of the .env file and it seems to work now:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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