客户端默认指向 jxd.jinniu.ink 的 HTTPS/WSS;登录后把 OpenIM userID 设为极光 alias。 华为 agconnect-services.json 不伪造、不入库。Master Secret 只从服务器文件注入。 Co-authored-by: multica-agent <github@multica.ai>
31 lines
667 B
Plaintext
31 lines
667 B
Plaintext
# 仅 80 端口:申请 Let's Encrypt 证书用。证书拿到后换成 nginx.conf。
|
|
worker_processes auto;
|
|
error_log /var/log/nginx/error.log warn;
|
|
pid /var/run/nginx.pid;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
sendfile on;
|
|
server_tokens off;
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name jxd.jinniu.ink;
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
root /var/www/acme;
|
|
}
|
|
|
|
location / {
|
|
return 200 'jxd.jinniu.ink bootstrap\n';
|
|
add_header Content-Type text/plain;
|
|
}
|
|
}
|
|
}
|