0
0
Fork 0
mirror of https://github.com/kevinpapst/kimai2.git synced 2025-04-30 07:20:11 +00:00
kevinpapst_kimai2/.docker/000-default.conf
2024-09-22 16:22:03 +02:00

34 lines
891 B
Text

<VirtualHost *:8001>
ServerAdmin webmaster@localhost
DocumentRoot /opt/kimai/public
PassEnv MAILER_FROM
PassEnv APP_ENV
PassEnv APP_SECRET
PassEnv DATABASE_URL
PassEnv MAILER_URL
PassEnv TRUSTED_PROXIES
PassEnv TRUSTED_HOSTS
SetEnvIf X-Forwarded-Proto https HTTPS=on
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-For "%{REMOTE_ADDR}s"
RemoteIPHeader X-Forwarded-For
# Define a macro to set the RemoteIPTrustedProxy directive
<Macro SetTrustedProxy PROXY>
RemoteIPTrustedProxy ${PROXY}
</Macro>
# Use the macro, passing the environment variable TRUSTED_PROXIES
Use SetTrustedProxy %{TRUSTED_PROXIES}e
<Directory "/opt/kimai/public">
Require all granted
DirectoryIndex index.php
AllowOverride All
</Directory>
</VirtualHost>
ServerName localhost