Apache Reverse Proxy configuration

Hi,

first of all thanks for dawarich, it’s really cooool and let me playing in conjunction with immich.

My goal is to use dawarich behind a apache reverse proxy (using apache with tons of reverse proxies a long time) behind my Fritzbox. If a use http / native ip adress with Fritzbox Wireguard VPN everything works as expected in my basic config.

I am using dawarich on host 192.168.178.101:3010 and my apache webserver is running at 192.168.178.100:443, the config is as described in Dawarich reverse-proxy, of course with my ip adresses.

After restarting my Apache Webserver the Side is loaded, but authentification do not work. After looking around the logfiles i found this entry:

ActionController::InvalidAuthenticityToken (HTTP Origin header (https://dawarich.<Base Domain>) didn't match request.base_url (http://dawarich.<Base Domain>)):

followed by a lot of lines containing blocksentence.

It seems to me this could be related to the

	RequestHeader set X-Real-IP %{REMOTE_ADDR}s
	RequestHeader set X-Forwarded-For %{REMOTE_ADDR}s
	RequestHeader set X-Forwarded-Proto https
	RequestHeader set X-Forwarded-Server %{SERVER_NAME}s
	RequestHeader set Host %{HTTP_HOST}s

lines in the example, but i found no solution.

Or is this related with the rails or the docker config because in the example the destination adress is 127.0.0.1? Of course i set the correpondending vars in the .env file and i have no http Subdomain Apache subdomain config.

Thanks a lot for any hints.

ralfi

Cant support you with anything related to reverse proxies, but you may find some help in our Discord community: Dawarich

Thank you very much, will try it