Reverse proxy with nginx
This commit is contained in:
11
docker/h2-proxy/default.conf
Normal file
11
docker/h2-proxy/default.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/server.crt;
|
||||
ssl_certificate_key /etc/nginx/ssl/server.key;
|
||||
|
||||
location / {
|
||||
proxy_pass http://nginx;
|
||||
}
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
ServerName localhost
|
||||
Listen 443
|
||||
|
||||
SSLEngine on
|
||||
SSLCertificateFile "/usr/local/apache2/conf/server.crt"
|
||||
SSLCertificateKeyFile "/usr/local/apache2/conf/server.key"
|
||||
SSLSessionCache "shmcb:/usr/local/apache2/logs/ssl_scache(512000)"
|
||||
|
||||
User daemon
|
||||
Group daemon
|
||||
|
||||
ErrorLog /proc/self/fd/2
|
||||
CustomLog /proc/self/fd/1 "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
|
||||
|
||||
Protocols h2 http/1.1
|
||||
|
||||
ProxyPass / http://nginx/
|
||||
ProxyPassReverse / http://nginx/
|
||||
|
||||
LoadModule mpm_event_module modules/mod_mpm_event.so
|
||||
LoadModule authz_core_module modules/mod_authz_core.so
|
||||
LoadModule http2_module modules/mod_http2.so
|
||||
LoadModule log_config_module modules/mod_log_config.so
|
||||
LoadModule proxy_module modules/mod_proxy.so
|
||||
LoadModule proxy_http_module modules/mod_proxy_http.so
|
||||
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
|
||||
LoadModule ssl_module modules/mod_ssl.so
|
||||
LoadModule unixd_module modules/mod_unixd.so
|
||||
Reference in New Issue
Block a user