You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.4 KiB
47 lines
1.4 KiB
user root;
|
|
worker_rlimit_nofile 50000;
|
|
events {
|
|
worker_connections 10240;
|
|
}
|
|
|
|
http{
|
|
server {
|
|
listen 80;
|
|
listen 443 ssl;
|
|
server_name chat;
|
|
ssl_certificate /etc/nginx/key/certificate.crt;
|
|
ssl_certificate_key /etc/nginx/key/private.pem;
|
|
ssl_session_timeout 5m;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
location / {
|
|
root html;
|
|
index index.html index.htm;
|
|
|
|
proxy_pass http://localhost:9000;# Kafka Manager监听的端口
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
|
|
location /api{
|
|
proxy_pass http://127.0.0.1:8888/api;
|
|
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "Upgrade";
|
|
|
|
proxy_connect_timeout 4s;
|
|
proxy_read_timeout 120s;
|
|
proxy_send_timeout 12s;
|
|
|
|
}
|
|
}
|
|
}
|