halo-dev / plugin-sitemap

Halo 2.0 的站点 Sitemap 生成插件
https://halo.run/store/apps/app-QDFMI
GNU General Public License v3.0
6 stars 6 forks source link

站点sitemap的url显示为localhost #30

Closed MoLing-Dong closed 7 months ago

MoLing-Dong commented 7 months ago

https://stjhub.com/sitemap.xml 截至到发文时间,所有的软件都是最新版

server {
    listen 443 ssl http2 ; 
    listen 80 ; 
    server_name stjhub.com; 
    index index.php index.html index.htm default.php default.htm default.html; 
    proxy_set_header Host $host; 
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
    proxy_set_header X-Forwarded-Host $server_name; 
    proxy_set_header X-Real-IP $remote_addr; 
    proxy_http_version 1.1; 
    proxy_set_header Upgrade $http_upgrade; 
    proxy_set_header Connection "upgrade"; 
    access_log /www/sites/stjhub.com/log/access.log; 
    error_log /www/sites/stjhub.com/log/error.log; 
    access_by_lua_file /www/common/waf/access.lua; 
    set $RulePath /www/sites/stjhub.com/waf/rules; 
    set $logdir /www/sites/stjhub.com/log; 
    set $redirect on; 
    set $attackLog on; 
    set $CCDeny on; 
    set $urlWhiteAllow off; 
    set $urlBlockDeny off; 
    set $argsDeny off; 
    set $postDeny off; 
    set $cookieDeny off; 
    set $fileExtDeny off; 
    set $ipBlockDeny off; 
    set $ipWhiteAllow off; 
    location ^~ /.well-known/acme-challenge {
        allow all; 
        root /usr/share/nginx/html; 
    }
    if ($scheme = http) {
        return 301 https://$host$request_uri; 
    }
    ssl_certificate /www/sites/stjhub.com/ssl/fullchain.pem; 
    ssl_certificate_key /www/sites/stjhub.com/ssl/privkey.pem; 
    ssl_protocols TLSv1.3 TLSv1.2 TLSv1.1 TLSv1; 
    ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5; 
    ssl_prefer_server_ciphers on; 
    ssl_session_cache shared:SSL:10m; 
    ssl_session_timeout 10m; 
    add_header Strict-Transport-Security "max-age=31536000"; 
    error_page 497 https://$host$request_uri; 
    proxy_set_header X-Forwarded-Proto https; 
    ssl_stapling on; 
    ssl_stapling_verify on; 
    include /www/sites/stjhub.com/proxy/*.conf; 
    location / {
        proxy_pass http://127.0.0.1:8080; 
    }
}
ruibaby commented 7 months ago

建议检查你的 external-url 是否设置正确。

https://docs.halo.run/getting-started/install/docker-compose#:~:text=mysql%E3%80%81h2-,halo.external%2Durl,-%E5%A4%96%E9%83%A8%E8%AE%BF%E9%97%AE%E9%93%BE

/kind support

MoLing-Dong commented 7 months ago

建议检查你的 external-url 是否设置正确。

https://docs.halo.run/getting-started/install/docker-compose#:~:text=mysql%E3%80%81h2-,halo.external%2Durl,-%E5%A4%96%E9%83%A8%E8%AE%BF%E9%97%AE%E9%93%BE

/kind support

我使用的的是1panel部署的

ruibaby commented 7 months ago

https://docs.halo.run/getting-started/install/1panel#%E5%AE%89%E8%A3%85-halo-%E5%BA%94%E7%94%A8:~:text=%E7%AE%A1%E7%90%86%E5%91%98%E5%AF%86%E7%A0%81%E3%80%82-,%E5%A4%96%E9%83%A8%E8%AE%BF%E9%97%AE%E5%9C%B0%E5%9D%80,-%EF%BC%9AHalo%20%E5%BA%94%E7%94%A8%E7%9A%84