gitlab-recipes
gitlab-recipes copied to clipboard
Parametrize apache configuration
I think it would be great if you guys could parametrize the Apache configurations with environment variables. This will save the users the efforts to edit the Apache configuration manually.
Apache supports environment variables very well in /etc/apache2/envvars. These environment variables can be used in sites-available configuration. For example, instead of the line:
ProxyPassReverse http://YOUR_SERVER_FQDN/
You could make it:
ProxyPassReverse http://${GITLAB_YOUR_SERVER_FQDN}/
And then this can be a variable and I can update my apache configuration without worrying about readjusting the configuration manualy.
Greetings.
@samerafach that's a very nice proposal. We would need to:
- edit the Apache files accordingly and preferably add a comment about this in the header
- add documentation
Can you tackle this?