Update reverse_proxy_ssl.conf
This commit is contained in:
parent
01d1a4e4e3
commit
6f9c78119d
@ -1,13 +1,33 @@
|
|||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerName demo-devops-api.konnect.dev
|
ServerName demo-devops-api.konnect.dev
|
||||||
|
ServerAdmin webmaster@localhost
|
||||||
|
Redirect permanent / https://demo-devops-api.konnect.dev
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
<VirtualHost *:443>
|
||||||
|
ServerName demo-devops-api.konnect.dev
|
||||||
|
|
||||||
ServerAdmin webmaster@localhost
|
ServerAdmin webmaster@localhost
|
||||||
|
|
||||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
||||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
|
||||||
|
|
||||||
ProxyRequests Off
|
ProxyRequests Off
|
||||||
ProxyPreserveHost On
|
ProxyPreserveHost On
|
||||||
ProxyPass / http://localhost:5000/
|
ProxyPass / http://localhost:5000/
|
||||||
ProxyPassReverse / http://localhost:5000/
|
ProxyPassReverse / http://localhost:5000/
|
||||||
|
|
||||||
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
|
|
||||||
|
SSLEngine On
|
||||||
|
SSLProxyEngine On
|
||||||
|
SSLProxyCheckPeerName Off
|
||||||
|
SSLProxyCheckPeerCN Off
|
||||||
|
SSLProxyVerify none
|
||||||
|
|
||||||
|
Include /etc/letsencrypt/options-ssl-apache.conf
|
||||||
|
SSLCertificateFile /etc/letsencrypt/live/demo-devops-api.konnect.dev/fullchain.pem
|
||||||
|
SSLCertificateKeyFile /etc/letsencrypt/live/demo-devops-api.konnect.dev/privkey.pem
|
||||||
|
|
||||||
|
RequestHeader set X-Forwarded-Proto https
|
||||||
|
RequestHeader set X-Forwarded-Port 443
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user