first commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# Example proxy configuration
|
||||
|
||||
|
||||
<VirtualHost *:80>
|
||||
ServerName domain.tld
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTPS} off
|
||||
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
||||
ServerName domain.tld
|
||||
|
||||
SSLEngine on
|
||||
SSLCertificateFile /etc/letsencrypt/live/domain.tld/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/domain.tld/privkey.pem
|
||||
|
||||
ProxyPreserveHost On
|
||||
ProxyRequests Off
|
||||
ProxyVia Off
|
||||
ProxyPass / http://127.0.0.1:1611/
|
||||
ProxyPassReverse / http://127.0.0.1:1611/
|
||||
</VirtualHost>
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=KJV API endpoint at localhost port 1611
|
||||
|
||||
[Service]
|
||||
#ExecStart=uwsgi_python3 --http-socket :1611 --wsgi-file /opt/kjv-api/app.py --callable app --stats 127.0.0.1:9191
|
||||
ExecStart=/opt/kjv-api/kjv-api.sh
|
||||
User=kjv
|
||||
EnvironmentFile=/etc/environment
|
||||
KillMode=mixed
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user