Skip to content

Fixes to work using a reverse proxy#801

Merged
jokob-sk merged 2 commits intonetalertx:mainfrom
alnviana:patch-1
Sep 23, 2024
Merged

Fixes to work using a reverse proxy#801
jokob-sk merged 2 commits intonetalertx:mainfrom
alnviana:patch-1

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
Collaborator

@alnviana thanks a lot!

@jokob-sk jokob-sk merged commit 0cc3ede into netalertx:main Sep 23, 2024
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