feat(samples/httpaste.it/httpd) enable SSL
This commit is contained in:
parent
68d9240c0c
commit
56f46172ce
3 changed files with 22 additions and 1 deletions
|
|
@ -22,6 +22,7 @@ services:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
volumes:
|
volumes:
|
||||||
-
|
-
|
||||||
type: volume
|
type: volume
|
||||||
|
|
@ -30,6 +31,7 @@ services:
|
||||||
volume:
|
volume:
|
||||||
nocopy: true
|
nocopy: true
|
||||||
- ./httpd/usr/local/apache2/conf/httpd.conf:/usr/local/apache2/conf/httpd.conf
|
- ./httpd/usr/local/apache2/conf/httpd.conf:/usr/local/apache2/conf/httpd.conf
|
||||||
|
- ./httpd/usr/local/apache2/ssl:/usr/local/apache2/ssl
|
||||||
tor:
|
tor:
|
||||||
build:
|
build:
|
||||||
context: ./tor
|
context: ./tor
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ LoadModule unixd_module modules/mod_unixd.so
|
||||||
LoadModule access_compat_module modules/mod_access_compat.so
|
LoadModule access_compat_module modules/mod_access_compat.so
|
||||||
LoadModule security2_module /usr/lib/apache2/modules/mod_security2.so
|
LoadModule security2_module /usr/lib/apache2/modules/mod_security2.so
|
||||||
LoadModule evasive20_module /usr/lib/apache2/modules/mod_evasive20.so
|
LoadModule evasive20_module /usr/lib/apache2/modules/mod_evasive20.so
|
||||||
|
LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so
|
||||||
|
|
||||||
<IfModule unixd_module>
|
<IfModule unixd_module>
|
||||||
User www-data
|
User www-data
|
||||||
|
|
@ -88,3 +88,20 @@ ServerName 127.0.0.1
|
||||||
SetEnv proxy-sendchunks
|
SetEnv proxy-sendchunks
|
||||||
ProxyPass "/" "unix:/shared/uwsgi.sock|uwsgi://localhost/"
|
ProxyPass "/" "unix:/shared/uwsgi.sock|uwsgi://localhost/"
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
<IfFile 'ssl/private.key'>
|
||||||
|
Listen 0.0.0.0:443
|
||||||
|
|
||||||
|
|
||||||
|
<VirtualHost 0.0.0.0:443>
|
||||||
|
#ProxyPreserveHost On
|
||||||
|
ServerName httpaste.it
|
||||||
|
ServerAlias localhost
|
||||||
|
SSLEngine on
|
||||||
|
SSLCertificateFile "ssl/certificate.crt"
|
||||||
|
SSLCertificateChainFile "ssl/ca_bundle.crt"
|
||||||
|
SSLCertificateKeyFile "ssl/private.key"
|
||||||
|
SetEnv proxy-sendchunks
|
||||||
|
ProxyPass "/" "unix:/shared/uwsgi.sock|uwsgi://localhost/"
|
||||||
|
</VirtualHost>
|
||||||
|
</IfFile>
|
||||||
|
|
|
||||||
2
samples/httpaste.it/httpd/usr/local/apache2/ssl/.gitignore
vendored
Normal file
2
samples/httpaste.it/httpd/usr/local/apache2/ssl/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
*.key
|
||||||
|
*.crt
|
||||||
Loading…
Add table
Add a link
Reference in a new issue