Nginx整合
添加配置文件:
vim /data/nginx/conf/vhosts/imc.conf
# Nginx Second Configure File. # RocketChat. upstream imc { # 接口 server 127.0.0.1:3000; } server { listen 80; listen 443 ssl; server_name imc.example.cc; client_max_body_size 200M; ssl_certificate certs/imc.example.cc.pem; ssl_certificate_key certs/imc.example.cc.key; access_log logs/imc_access.log; error_log logs/imc_error.log ; # No Robots location = /robots.txt { return 200 "User-agent: *\nDisallow: /"; } location / { proxy_pass http://imc/; proxy_set_header Host $host; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; 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 X-Nginx-Proxy true; proxy_redirect off; } }
systemctl reload nginx
后续更新
RocketChat 3.4.1版本通过Nginx转发的流量页面展示有Bug;这个问题在 3.4.2 版本更新后修复。
Hello colleagues, nice piece of writing and nice urging commented at this place, I am really enjoying by these. Bobbie Cammy Balf
Really enjoyed this blog post. Thanks Again. Keep writing. Rubia Ambrose Idalia
I really like your writing style, wonderful information, regards for putting up : D. Donica Eduardo Corie
Thanks for sharing, this is a fantastic post. Much thanks again. Really Great. Larissa Algernon Thay