1

我直接运行了我的 Nitrogen 驱动应用程序,但是因为我想使用 Nginx 负载平衡魔法,我发现 Nitrogen 的进度通知器,Spinner 根本没有显示。我按照页面底部的氮气配置选项中的示例进行操作。链接中的示例代码片段如下所示。

# My config for a site that I only want serving SSL content.

server {
    listen   80;

    server_name www.mysite.com, mysite.com;
    access_log  /var/log/nginx/mysite.com.access.log;

# rewrite all requests to be SSL
    rewrite ^(.*) https://$host$1 permanent;
}

server {
    listen 443;
    server_name mysite.com www.mysite.com
    access_log /var/log/nginx/mysite.ssl.access.log;

    ssl on;

    ssl_certificate ssl/mysite/mysite.com.crt;
    ssl_certificate_key ssl/mysite/mysite.com.key;
    ssl_client_certificate ssl/mysite/ca.crt;

    location / {
    # This installation is running on port 8021, as you can plainly see.
      proxy_pass http://127.0.0.1:8000;
    }
}

没有 Nginx,微调器工作正常。如 RELEASE 文件中所述,我在 Yaws 上使用 Nitrogen [{release,"nitrogen","2.3.0-beta5","5.10.3",[...,...,...,...],permanent}]。我不做我做错的事。

4

0 回答 0