跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[问与答] 关于 Netlify 域名的问题,麻烦各位大佬帮忙看看如何处理?

发表于

大佬们,请教一个问题。

我之前是把域名的 cname 绑在 Netlify 上,但是因为 Netlify 的证书是 lests 的,现在很多浏览器开始不认可这个证书了,所以我现在想换成绑定到自己的 VPS 上。

请问如何编写 Nginx 配置呢?

ChatGPT 现在给的写法为:

server {
    listen 443 ssl;
    server_name 1900.live;

    ssl_certificate /etc/nginx/ssl/your_domain.crt;
    ssl_certificate_key /etc/nginx/ssl/your_domain.key;

    location / {
        proxy_pass https://your-netlify-domain.netlify.app; # 替换成你的 Netlify 服务域名
        proxy_set_header Host your-netlify-domain.netlify.app; # 替换成你的 Netlify 服务域名
        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-Forwarded-Port $server_port;
        proxy_ssl_server_name on;
    }
}

# 监听 80 端口,并自动重定向 http 请求到 https
server {
    listen 80;
    server_name 1900.live;
    return 301 https://$host$request_uri;
}

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.