Commit f22ef38a authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Configured httpd for ruby

parent 89b669f1
all: database-config
all: database-config httpd-conf
rm /etc/passwd
mv -v /data/etc/passwd /etc/passwd
rm /etc/group
......@@ -71,6 +71,11 @@ all: database-config
find / -depth -name .tox -type d -exec rm -rf '{}' ';'
find / -depth -name node_modules -type d -exec rm -rf '{}' ';'
chown -R apache.apache /srv/www
rm -f /etc/httpd/conf/DocumentRoot.conf
@echo "$$HTTPD_CONF" > /etc/httpd/conf/ruby.conf
rm -rf gitlab-home
umount /tmp
rm -rf tmp
......@@ -94,3 +99,28 @@ production:
database: gitlabhq_production
endef
export DATABASE_CONFIG
httpd-conf:
define HTTPD_CONF
LoadModule expires_module /usr/lib/httpd/modules/mod_expires.so
DocumentRoot /srv/www/public
<Directory "/srv/www/public">
AllowOverride all
Options -MultiViews
Require all granted
</Directory>
PassengerAppRoot "/srv/www"
RailsEnv production
RailsBaseURI /
<Location /assets/>
Header unset ETag
FileETag None
ExpiresActive On
ExpiresDefault "access plus 1 year"
</Location>
endef
export HTTPD_CONF
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment