root/configs/phalanx/apache/main.conf @ 5157b47f
| 9af489b1 | David Sorber | |||
| 1a887ea3 | David Sorber | <VirtualHost *:80>
|
||
| 9af489b1 | David Sorber | Redirect permanent / https://phalanx.homelinuxserver.org
|
||
| 1a887ea3 | David Sorber | </VirtualHost>
|
||
<VirtualHost _default_:443>
|
||||
| 9af489b1 | David Sorber | ServerName https://phalanx.homelinuxserver.org
|
||
| 1a887ea3 | David Sorber | ServerAdmin webmaster@localhost
|
||
DocumentRoot /var/www
|
||||
<Directory />
|
||||
Options FollowSymLinks
|
||||
AllowOverride None
|
||||
</Directory>
|
||||
<Directory /var/www/>
|
||||
Options Indexes FollowSymLinks MultiViews
|
||||
AllowOverride None
|
||||
| 9af489b1 | David Sorber | Require all granted
|
||
| 1a887ea3 | David Sorber | </Directory>
|
||
Alias /htdocs /var/htdocs
|
||||
<Directory /var/htdocs>
|
||||
| 9af489b1 | David Sorber | Require all granted
|
||
| 1a887ea3 | David Sorber | </Directory>
|
||
| 9af489b1 | David Sorber | ErrorDocument 403 /error_pages/404.html
|
||
ErrorDocument 404 /error_pages/404.html
|
||||
| 1a887ea3 | David Sorber | |||
| 9af489b1 | David Sorber | CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||
| 1a887ea3 | David Sorber | ErrorLog ${APACHE_LOG_DIR}/error.log
|
||
# Possible values include: debug, info, notice, warn, error, crit,
|
||||
# alert, emerg.
|
||||
LogLevel warn
|
||||
| 9af489b1 | David Sorber | SSLEngine On
|
||
SSLCertificateFile /etc/apache2/ssl/phalanx.crt
|
||||
SSLCertificateKeyFile /etc/apache2/ssl/phalanx.key
|
||||
SSLProtocol -all +TLSv1.3
|
||||
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
|
||||
| b9381291 | David Sorber | # --- Nextcloud ------------------------------------------------
|
||
| f92b0d6f | David Sorber | Alias /nextcloud/ "/var/www/nextcloud/"
|
||
| b9381291 | David Sorber | <Directory /var/www/nextcloud/>
|
||
| f92b0d6f | David Sorber | Require all granted
|
||
| b9381291 | David Sorber | AllowOverride All
|
||
| f92b0d6f | David Sorber | Options FollowSymLinks MultiViews
|
||
| b9381291 | David Sorber | |||
<IfModule mod_dav.c>
|
||||
Dav off
|
||||
</IfModule>
|
||||
<IfModule mod_headers.c>
|
||||
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
|
||||
</IfModule>
|
||||
SetEnv HOME /var/www/nextcloud
|
||||
SetEnv HTTP_HOME /var/www/nextcloud
|
||||
</Directory>
|
||||
| 9af489b1 | David Sorber | # --- Redmine ---------------------------------------------------
|
||
Alias /redmine /var/www/redmine/
|
||||
| f92b0d6f | David Sorber | <Directory /var/www/redmine/>
|
||
Options Indexes FollowSymLinks MultiViews
|
||||
AllowOverride None
|
||||
Order allow,deny
|
||||
allow from all
|
||||
PassengerAppRoot /srv/redmine
|
||||
RailsBaseURI /redmine
|
||||
</Directory>
|
||||
| 9af489b1 | David Sorber | # --- Redmine Git ----------------------------------------------
|
||
PerlLoadModule Apache2::Redmine
|
||||
Alias /git /var/www/grack/public
|
||||
<Location /git>
|
||||
PassengerBaseURI /git
|
||||
PassengerAppRoot /var/www/grack
|
||||
AuthType Basic
|
||||
AuthName "Redmine git repositories"
|
||||
Require valid-user
|
||||
AuthUserFile /dev/null
|
||||
| f92b0d6f | David Sorber | |||
| 9af489b1 | David Sorber | PerlAccessHandler Apache::Authn::Redmine::access_handler
|
||
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
|
||||
#RedmineDSN "DBI:mysql:database=bitnami_redmine;host=localhost;mysql_socket=/opt/bitnami/mysql/tmp/mysql.sock"
|
||||
RedmineDSN "DBI:Pg:dbname=redmine;host=localhost"
|
||||
RedmineDbUser "redmine"
|
||||
RedmineDbPass "SemolinaPilchardPornographicPriestess"
|
||||
RedmineGitSmartHttp yes
|
||||
</Location>
|
||||
<Directory "/var/www/grack/public">
|
||||
Options None
|
||||
AllowOverride None
|
||||
<IfVersion < 2.3 >
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</IfVersion>
|
||||
<IfVersion >= 2.3>
|
||||
Require all granted
|
||||
</IfVersion>
|
||||
</Directory>
|
||||
# --- Transmission ---------------------------------------------
|
||||
ProxyRequests Off
|
||||
<Location /transmission>
|
||||
AuthType Digest
|
||||
AuthName "engine"
|
||||
AuthDigestProvider file
|
||||
AuthUserFile /home/dsorber/web_users
|
||||
Require valid-user
|
||||
| cec3e584 | David Sorber | ProxyPass http://127.0.0.1:9565/transmission
|
||
ProxyPassReverse http://127.0.0.1:9565/transmission
|
||||
| 9af489b1 | David Sorber | </Location>
|
||
# --- ttyd -----------------------------------------------------
|
||||
#ProxyRequests Off
|
||||
<Location /terminal>
|
||||
ProxyPreserveHost On
|
||||
RewriteEngine on
|
||||
RewriteCond %{HTTP:Upgrade} websocket [NC]
|
||||
RewriteCond %{HTTP:Connection} upgrade [NC]
|
||||
| cec3e584 | David Sorber | RewriteRule /terminal/?(.*) "ws://127.0.0.1:9772/$1" [P,L]
|
||
ProxyPass http://127.0.0.1:9772/
|
||||
ProxyPassReverse http://127.0.0.1:9772/
|
||||
ProxyPass ws://127.0.0.1:9772/
|
||||
ProxyPassReverse ws://127.0.0.1:9772/
|
||||
| 9af489b1 | David Sorber | </Location>
|
||
</VirtualHost>
|