gitlab-recipes icon indicating copy to clipboard operation
gitlab-recipes copied to clipboard

Parametrize apache configuration

Open TheQuantumPhysicist opened this issue 9 years ago • 1 comments

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.

TheQuantumPhysicist avatar May 06 '16 12:05 TheQuantumPhysicist

@samerafach that's a very nice proposal. We would need to:

  1. edit the Apache files accordingly and preferably add a comment about this in the header
  2. add documentation

Can you tackle this?

axilleas avatar May 07 '16 08:05 axilleas