Install jitsi on the intranet server, let the public server use nginx reverse proxy, and then use the domain name to access.
Self-signed domain name: abche.com
Hosts configuration: 172.18.0.67 abche.com
Nginx reverse proxy configuration:
server {
listen 80;
server_name jsitest.soft.cn;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name jsitest.soft.cn;
client_max_body_size 100M;
charset UTF-8;
client_header_buffer_size 10k;
large_client_header_buffers 4 16k;
ssl_certificate /app/ssl/soft.cn.pem;
ssl_certificate_key /app/ssl/soft.cn.key;
location / {
proxy_pass https://abche.com;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
Because I have configured 172.18.0.67 abche.com in the hosts file of my computer and the server of nginx
Why not configure hosts to achieve this effect?