added apache2 proxy config
This commit is contained in:
parent
7c077673c3
commit
6500154a83
2 changed files with 55 additions and 10 deletions
45
contrib/apache2/zammad.conf
Normal file
45
contrib/apache2/zammad.conf
Normal file
|
@ -0,0 +1,45 @@
|
|||
#
|
||||
# this is the apache config for zammad
|
||||
#
|
||||
|
||||
<VirtualHost *:80>
|
||||
# replace 'localhost' with your fqdn if you want to use zammad from remote
|
||||
ServerName localhost
|
||||
|
||||
## don't loose time with IP address lookups
|
||||
HostnameLookups Off
|
||||
|
||||
## needed for named virtual hosts
|
||||
UseCanonicalName Off
|
||||
|
||||
## configures the footer on server-generated documents
|
||||
ServerSignature Off
|
||||
|
||||
ProxyRequests Off
|
||||
ProxyPreserveHost On
|
||||
|
||||
<Proxy *>
|
||||
Order deny,allow
|
||||
Allow from localhost
|
||||
</Proxy>
|
||||
|
||||
ProxyPass /assets !
|
||||
ProxyPass /favicon.ico !
|
||||
ProxyPass /robots.txt !
|
||||
ProxyPass /ws ws://localhost:6042/
|
||||
ProxyPass / http://localhost:3000/
|
||||
|
||||
DocumentRoot "/opt/zammad/public"
|
||||
|
||||
<Directory />
|
||||
Options FollowSymLinks
|
||||
AllowOverride None
|
||||
</Directory>
|
||||
|
||||
<Directory "/opt/zammad/public">
|
||||
Options FollowSymLinks
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
|
||||
</VirtualHost>
|
|
@ -45,20 +45,20 @@ else
|
|||
|
||||
# centos
|
||||
if [ -n "$(which postgresql-setup 2> /dev/null)" ]; then
|
||||
echo "# Preparing postgresql server"
|
||||
postgresql-setup initdb
|
||||
echo "# Preparing postgresql server"
|
||||
postgresql-setup initdb
|
||||
|
||||
echo "# Backuping postgres config"
|
||||
test -f /var/lib/pgsql/data/pg_hba.conf.bak || cp /var/lib/pgsql/data/pg_hba.conf /var/lib/pgsql/data/pg_hba.conf.bak
|
||||
echo "# Backuping postgres config"
|
||||
test -f /var/lib/pgsql/data/pg_hba.conf.bak || cp /var/lib/pgsql/data/pg_hba.conf /var/lib/pgsql/data/pg_hba.conf.bak
|
||||
|
||||
echo "# Allow login via username and password in postgresql"
|
||||
sed 's/ident/trust/g' < /var/lib/pgsql/data/pg_hba.conf.bak > /var/lib/pgsql/data/pg_hba.conf
|
||||
echo "# Allow login via username and password in postgresql"
|
||||
sed 's/ident/trust/g' < /var/lib/pgsql/data/pg_hba.conf.bak > /var/lib/pgsql/data/pg_hba.conf
|
||||
|
||||
echo "# Restarting postgresql server"
|
||||
${INIT_CMD} restart postgresql
|
||||
echo "# Restarting postgresql server"
|
||||
${INIT_CMD} restart postgresql
|
||||
|
||||
echo "# Creating postgresql bootstart"
|
||||
${INIT_CMD} enable postgresql.service
|
||||
echo "# Creating postgresql bootstart"
|
||||
${INIT_CMD} enable postgresql.service
|
||||
fi
|
||||
|
||||
echo "# Creating zammad postgresql db"
|
||||
|
|
Loading…
Reference in a new issue