-
Notifications
You must be signed in to change notification settings - Fork 18
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
Easy-Gate docker container style.css 404 not found when running behind nginx reverse proxy in a subfolder / subpath #37
Comments
Hello, Im not quite sure if you are trying to provide a custom css file or you are referring to the standard style.css file. The standard one is embedded in easy-gate binary and should be available by default even inside the Docker image. The default interface should be similar to the screenshot you can see in the readme (the first white one). Can you check if you are trying to provide easy-gate with a custom css file by looking at the configuration for:
If so, and you are not interested in using a custom css file you can simply remove this line from the configuration. If you want to use a custom CSS file instead you need to make sure to specify the correct path (relative to the docker filesystem) inside the configuration file and use a docker volume to make the syte.css file available inside the container. Something like this:
Let me know if this works for you |
Thanks for writing back! I just want the standard builtin I think I'm missing something in my nginx reverse proxy config.
But the Nginx logs still show that it's trying to load
Just for reference, here is the content of my easy-gate.yml configuration file which I'm enforcing using
This custom easy gate works because I can see it in the browser but like said, it's just basic html. I'll keep trying looking for nginx config options that might fix this for me. |
I managed to get Nginx to pass everything to the
Now I can see CSS: Would it be possible to make |
I was about to write the same thing 😄 |
Issue should now be fixed on v2.0.2 (https://github.com/r7wx/easy-gate/releases/tag/2.0.2) |
Works like a charm! Thanks for implementing this! |
Easy-Gate looks like something I could use and wanted to give it a try. I am using a nginx reverse proxy and followed the mentioned confiuration:
I first noticed that the page style was only showing basic html content after starting the easygate containter using the lastest docker image.
I also use this in my easy-gate nginx config file.
I initially thought there was a file location or path I missed and started going through the container's file system looking for a
style.css
file and didn't find any.Then I started looking at the
Dockerfile
and thought I would try to build an image locally but ran into GO proxy authentication issues with some of the go dependencies ( forgithub.com/klauspost/compress
the docker build command saidaccess denied
which after a short web search I found out is related to the specific go proxy being used)This opened a whole new can of worms for me since I don't have a go environment set up on my machine and I'm not looking to pursue that.
Please let me know if I'm missing some important easy-gate configuration detail.
At first glance I would think that the
style.css
file is not built into the easy-gate docker image. I'm not a go developer and I may be mistaken, so if there's any way that you could make these static files available in the docker image I would be grateful.The text was updated successfully, but these errors were encountered: