init
This commit is contained in:
85
h2-proxy/conf.d/default.conf
Normal file
85
h2-proxy/conf.d/default.conf
Normal file
@@ -0,0 +1,85 @@
|
||||
# client
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/cert.crt;
|
||||
ssl_certificate_key /etc/nginx/ssl/cert.key;
|
||||
|
||||
location / {
|
||||
proxy_pass http://client:3000;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
}
|
||||
|
||||
# admin
|
||||
server {
|
||||
listen 444 ssl http2;
|
||||
listen [::]:444 ssl http2;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/cert.crt;
|
||||
ssl_certificate_key /etc/nginx/ssl/cert.key;
|
||||
|
||||
location / {
|
||||
proxy_pass http://admin:3000;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
}
|
||||
|
||||
# api
|
||||
server {
|
||||
listen 8443 ssl http2;
|
||||
listen [::]:8443 ssl http2;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/cert.crt;
|
||||
ssl_certificate_key /etc/nginx/ssl/cert.key;
|
||||
|
||||
location / {
|
||||
proxy_pass http://api;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Port 8443;
|
||||
}
|
||||
}
|
||||
|
||||
# cache-proxy
|
||||
server {
|
||||
listen 8444 ssl http2;
|
||||
listen [::]:8444 ssl http2;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/cert.crt;
|
||||
ssl_certificate_key /etc/nginx/ssl/cert.key;
|
||||
|
||||
location / {
|
||||
proxy_pass http://cache-proxy;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Port 8444;
|
||||
}
|
||||
}
|
||||
|
||||
# mercure
|
||||
server {
|
||||
listen 1338 ssl http2;
|
||||
listen [::]:1338 ssl http2;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/cert.crt;
|
||||
ssl_certificate_key /etc/nginx/ssl/cert.key;
|
||||
|
||||
location / {
|
||||
proxy_pass http://mercure;
|
||||
proxy_read_timeout 24h;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Port 1338;
|
||||
proxy_set_header Connection "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user