Closed mihha closed 6 months ago
After a really long struggle with huge amount of test and failures, I have come up with the solution
Posting the solution that works for me, so others, who will have a need to use Apache as reverse proxy can use it
Protocols h2 http/1.1
ProxyPreserveHost On
ProxyPass / http://localhost:3300/ flushpackets=on
ProxyPassReverse / http://localhost:3300/
RequestHeader set X-Forwarded-For "%{REMOTE_ADDR}e"
RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME}
RequestHeader set Host expr=%{HTTP_HOST}
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
Header always set Access-Control-Expose-Headers "Content-Security-Policy, Location"
Header always set Access-Control-Max-Age "600"
ProxyErrorOverride Off
<Proxy *>
allow from all
</Proxy>
This can probably be optimized further, but as a starting point, it works
This is actually not a bug, but you don't have any other category
You can use discussions for that
I have never used apache or wanted to, but I'd assume you want your config to look similar to how the provided NGINX config is: https://zipline.diced.sh/docs/guides/nginx/nginx-no-ssl - just a quick glance at what you posted seems to do that.
I'll be closing this, if i feel like it ill prolly add this to the docs but idk
What happened?
This is actually not a bug, but you don't have any other category
I am trying to run Zipline using docker compose, behind the Apache reverse proxy
I am asking here has anyone managed to do that?
My Apache server error log shows the following
No idea what to do with that. I have searched internet and tried all the suggestions I could find This is the part of my Apache virtual host configuration
Version
latest (ghcr.io/diced/zipline or ghcr.io/diced/zipline:latest)
What browser(s) are you seeing the problem on?
Chromium-based (Chrome, Edge, Brave, Opera, mobile chrome/chromium based, etc)
Zipline Logs
Browser Logs
No response
Additional Info
No response