RealYHD
CCoder.com
•Created by RealYHD on 9/10/2022 in #help
NGINX reverse proxy to Coder web UI
Hi all, I was just wondering if anyone has experience setting up an NGINX reverse proxy to coder? I would like to have it running at a sub-path instead of a (sub-)domain. The current issue is that Coder seems to still be trying to access items at the domain root instead of the sub-path.
To elaborate, going to my.domain.com/coder results in a blank white page. Checking the dev-tools console, there are 404 failed to load resource errors. Checking which resources, it seems to be looking for
https://my.domain.com/bundle.04c5eed1b191f7762dd9.js
instead of https://my.domain.com/coder/bundle.04c5eed1b191f7762dd9.js
which does show the script. I've configured Coder with CODER_ACCESS_URL=https://my.domain.com/coder/
but this doesn't seem to be doing what I would like.
I may also just be misunderstanding something, so any help is appreciated! Thanks.22 replies