Closed madtempest closed 1 year ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
Our company is having this same issue. It also prevents us from assigning hardware to users.
https://snipe.domain.com/snipe.domain.com/hardware/XX/edit
and the other says snipe.domain.com:80/hardware/XX/edit
. Which is it? And if the second is correct, then what's the issue? That's what the APP_URL is set to.If the expected url is https://snipe.domain.com/hardware/XX/edit
, then why is the APP_URL set to snipe.domain.com:80
? Default https port is 443, not 80
In any case, this looks like pebkac and not a bug. Closing
If the issue persists, please open a new issue with a clearer explanation of observed behavior
@zakpatat Clearly something has changed in an image as we both have experienced an issue despite not changing our docker compose configs. Whereas the need for the protocol in the APP_URL is 100% required now (it fixes the issue), it previously worked without it, mirroring the behaviour that was present when the APP_URL environment variable was the NGINX_APP_URL variable which didn't need the protocol specified (as per the README docs).
The change to need the protocol appears to have been in a release in March 2022 according to README commit history, but again it clearly wasn't breaking anything until recently.
Either way, fix the APP_URL variable to include the protocol as per the current README docs and recreate the container and it should work fine.
Can confirm that adding protocol to the APP_URL fixes this issue.
Is there an existing issue for this?
Current Behavior
Running the Latest image of Snipe-IT Container is behind a containerised NGINX reverse proxy When trying to edit an existing asset, or People account, the URL being presented is in the format https://snipe.domain.com/snipe.domain.com/hardware/XX/edit
When the environment varaible APP_URL is set, the URL instead becomes snipe.domain.com:80/hardware/XX/edit
Expected Behavior
When trying to edit an existing asset, or People account, the URL being presented is in the format https://snipe.domain.com/hardware/XX/edit
Steps To Reproduce
Create a new Snipe IT and MariaDB set of containers using the Linuxserver.io images via docker compose Set the APP_URL environment variable. Add a reverse proxy to the containers. Add a new asset or license or other object. Attempt to edit the object. Note the URL of the edit/checkin/etc buttons is incorrect.
Environment
CPU architecture
arm64
Docker creation
Container logs