-
-
Save uhlhosting/6bc2a3fc8efd6b270a3f6aeb65b3444b to your computer and use it in GitHub Desktop.
alf.io debian deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/default/alfio | |
---- | |
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre | |
MODE=service | |
#PORT=9001 | |
JAVA_OPTS="-Ddatasource.driver=org.postgresql.Driver -Ddatasource.url=jdbc:postgresql://localhost:5433/alfio -Ddatasource.username=alfio -Ddatasource.password=secret -Ddatasource.dialect=PGSQL -Ddatasource.validationQuery='SELECT 1'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/systemd/system/alfio.service | |
---- | |
[Unit] | |
Description=alfio | |
After=syslog.target | |
[Service] | |
EnvironmentFile=/etc/default/alfio | |
ExecStart=/opt/alfio/current/bin/alfio | |
WorkingDirectory=/opt/alfio/current/ | |
User=alfio-user | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/apache2/sites-available/bileterie.ro | |
---- | |
<VirtualHost *:80> | |
ServerName bileterie.ro | |
ServerAlias www.bileterie.ro | |
Redirect permanent / https://bileterie.ro/ | |
</VirtualHost> | |
<VirtualHost *:443> | |
ServerName bileterie.ro | |
ServerAlias www.bileterie.ro | |
ErrorLog ${APACHE_LOG_DIR}/bileterie-error.log | |
CustomLog ${APACHE_LOG_DIR}/bileterie-access.log combined | |
DocumentRoot /var/www/bileterie.ro | |
SSLEngine on | |
SSLCertificateFile /etc/ssl/live/fullchain.pem | |
SSLCertificateKeyFile /etc/ssl/live/privkey.pem | |
ProxyRequests Off | |
#ProxyPreserveHost On | |
AllowEncodedSlashes NoDecode | |
<Proxy *> | |
Order deny,allow | |
Allow from all | |
</Proxy> | |
ProxyPass / http://localhost:8080/ nocanon | |
ProxyPassReverse / http://localhost:8080/ | |
#ProxyPassReverse / https://bileterie.ro/ | |
RequestHeader set X-Forwarded-Proto "https" | |
</VirtualHost> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment