Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to work using a reverse proxy #801

Merged
merged 2 commits into from
Sep 23, 2024
Merged

Conversation

alnviana
Copy link
Contributor

@alnviana alnviana commented Sep 23, 2024

When using a reverse proxy with Subpath, the notifications don't load. The call is made to http://host/api/user_notifications.json instead of http://host/netalertx/api/user_notifications.json.
When I compared it to the table_devices.json request (which works), I realized that it probably works there because it's relative. When I changed it manually on the server to test, the notifications appeared.

I don't think changing this should cause any problems, as table_devices.json already works like this. However, as everything in IT is strange, any small change can cause unexpected errors, so I suggest you test it too. :)

Not working:
2024-09-22_21-11-19_firefox

Working:
2024-09-22_21-12-10_firefox

Edit:
I saw some other requests that were giving the same problem, so I decided to look up everything that used '/api' and found these two more.

table_appevents.json
2024-09-22_21-46-20_firefox
2024-09-22_21-47-20_firefox

table_notifications.json
2024-09-22_21-48-41_firefox
2024-09-22_21-49-42_firefox

@alnviana alnviana changed the title Fix for user_notifications to work using a reverse proxy Fixes to work using a reverse proxy Sep 23, 2024
@jokob-sk
Copy link
Owner

@alnviana thanks a lot!

@jokob-sk jokob-sk merged commit 0cc3ede into jokob-sk:main Sep 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants