This repository was archived by the owner on Aug 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
something went wrong while being behind Apache reverse proxy #61
Copy link
Copy link
Open
Description
While loading the web interface I got a 404 error "something went wrong" because browser can't load /api/settings neither /api/agent resources.
Settings are missing and Agents can't be loaded because resorces are served at: /nlp/api/settings and /nlp/api/agent
File swagger2.json is correctly loaded from: /nlp/swagger2.json
Steps to reproduce the behavior:
- Configure ssl with self-signed certs
- Configure apache to reverse proxy /nlp/ url
ProxyRequests Off
ProxyPass /nlp/ http://localhost:3010/
ProxyPassReverse /nlp/ http://localhost:3010/
<Location /nlp/>
ProxyPassReverse /
ProxyHTMLEnable On
ProxyHTMLURLMap http://localhost:3010/ /nlp/
ProxyHTMLURLMap / /nlp/
RequestHeader unset Accept-Encoding
</Location>- Configure client/.env like this
# ENV to generate public
# npm run build
SETTINGS_URL=https://remote.host/nlp
API_URL=https://remote.host/nlp
PUBLIC_PATH_PREFIX=.
- Open web interface and browser console
- See error
Mixed Content: The page at 'https://remote.host/nlp/api' was loaded over HTTPS, but requested an insecure resource 'http://remote.host/api/settings'. This request has been blocked; the content must be served over HTTPS.
I expected the interface were looking for /nlp/api/settings and /nlp/api/agent resources, where resource really are. Looks like SETTINGS_URL and API_URL are ignored.
Metadata
Metadata
Assignees
Labels
No labels