Files
memind/deploy/plaza-105/wechat.m.tkmind.cn.nginx.conf
T
john c5284a70c9
Memind CI / Test, build, and release guards (push) Failing after 5m20s
chore(infra): route 105 nginx upstream to 143 via WireGuard
After 103 public IP migration, 105 edge configs proxy to 10.10.0.2:8081 instead of the unreachable 58.38.22.103 or direct public 180.159.29.143.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-11 12:29:32 +08:00

38 lines
1.3 KiB
Plaintext

# wechat.m.tkmind.cn → 微信服务号消息推送专用域名
# 安装:/etc/nginx/conf.d/wechat.m.tkmind.cn.conf
# Switched 2026-09-11: upstream via WireGuard to 143 Portal (10.10.0.2:8081); old 58.38.22.103 unreachable.
server {
listen 80;
listen [::]:80;
server_name wechat.m.tkmind.cn;
location /.well-known/acme-challenge/ { root /var/www/certbot; }
location / { return 301 https://$host$request_uri; }
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name wechat.m.tkmind.cn;
ssl_certificate /etc/letsencrypt/live/wechat.m.tkmind.cn/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/wechat.m.tkmind.cn/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location = /webhooks/wechat-mp/messages {
proxy_pass http://10.10.0.2:8081;
proxy_http_version 1.1;
proxy_set_header Host m.tkmind.cn;
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_read_timeout 60;
proxy_send_timeout 60;
add_header Alt-Svc "" always;
proxy_buffering off;
}
location / { return 301 https://m.tkmind.cn$request_uri; }
}