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
Hello!
I am not familiar with Apache2 and its configuration, but based on your description I can imagine one problem.
The frontend currently calls the API on the main hostname (
) and not relative to the path.
If pasty runs on https://host.example/pasty for example, it will call https://host.example/api/v2 rather than https://host.example/pasty/api/v2. This is bad behaviour and will be fixed.
If this is not your problem, please try to access pasty with your browser's developer mode network tab open and try to determine any network errors.
I try to add rule for https://FQDN/api/v2 endpoint, but not as for other tools - it causes redirect loop from https://FQDN/api/v2/pastes to https://FQDN/api/v2/api/v2/pastes.
Funny that https://FQDN/api/v2/info works fine.
Hmmm. This is different requirement from this ticket and it works.
Any way issue is in endpoint as mentioned above: https://FQDN/api/v2/info works fine ✔️ https://FQDN/api/v2/pastes does not ❌
I would also prefer if possibility to configure sub-path via container variable could be add here, so that all calls goes to https://FQDN/SUB_PATH/api/v2 and https://FQDN/SUB_PATH/ for Frontend 😄
Activity
lus commentedon Jun 9, 2022
Hello!
I am not familiar with Apache2 and its configuration, but based on your description I can imagine one problem.
The frontend currently calls the API on the main hostname (
pasty/web/assets/js/modules/api.js
Line 1 in efe0ec7
If pasty runs on
https://host.example/pastyfor example, it will callhttps://host.example/api/v2rather thanhttps://host.example/pasty/api/v2. This is bad behaviour and will be fixed.If this is not your problem, please try to access pasty with your browser's developer mode network tab open and try to determine any network errors.
GAS85 commentedon Jun 9, 2022
I try to add rule for
https://FQDN/api/v2endpoint, but not as for other tools - it causes redirect loop fromhttps://FQDN/api/v2/pastestohttps://FQDN/api/v2/api/v2/pastes.Funny that
https://FQDN/api/v2/infoworks fine.Any Idea how to with ngnix?
gwolf2u commentedon Jun 12, 2022
idea
why not run on subdomain?
this is what I have for subdomain with nginx
GAS85 commentedon Jun 29, 2022
Hmmm. This is different requirement from this ticket and it works.
Any way issue is in endpoint as mentioned above:
https://FQDN/api/v2/infoworks fine ✔️https://FQDN/api/v2/pastesdoes not ❌I would also prefer if possibility to configure sub-path via container variable could be add here, so that all calls goes to
https://FQDN/SUB_PATH/api/v2andhttps://FQDN/SUB_PATH/for Frontend 😄matnakal77 commentedon Jul 4, 2022