代码之家  ›  专栏  ›  技术社区  ›  FractalSpace

Phabricator:在https上运行,不加载任何图像。Firefox报告阻止未加密内容

  •  5
  • FractalSpace  · 技术社区  · 9 年前

    Phabricator:在https上运行,不加载任何图像。Firefox报告阻止未加密内容。

    如果我单击“https”旁边的小屏蔽按钮,然后用“Options”按钮选择“Disable protection for now”(暂时禁用保护),情况似乎很好。

    我在phabricator中添加了https://。生产uri和phabricator。没有运气就允许uri。

    4 回复  |  直到 9 年前
        1
  •  17
  •   FractalSpace    9 年前

    找到它:

    bin/config set phabricator.base-uri https://<your-base-url>
    bin/phd restart
    

    我之前在phabricator中添加了https url。生产uri和phabricator。允许uri(我不知道这是否重要)。

    警告:有一次,我能够完成登录屏幕的混乱。可能是因为我没跑 bin/phd restart 。如果发生这种情况,请还原 phabricator.base-uri 恢复到其先前值。

        2
  •  2
  •   Tai Coromandel    8 年前

    除了设置 phabricator.base-uri ,您可能还需要更改 安全性备用文件域 使用HTTPS。阅读 https://secure.phabricator.com/book/phabricator/article/configuring_file_domain/ 以了解有关此设置的详细信息。

    或者,您也可以通过运行 bin/config delete security.alternate-file-domain .

        3
  •  1
  •   earthfront    9 年前

    安装TLS证书后,我也遇到了同样的问题。 设置基本uri选项不适用于我,生产或允许的uri选项也不适用。

    解决问题的是设置 安全性备用文件域 https url的参数,如下所述: https://secure.phabricator.com/book/phabricator/article/configuring_file_domain/

    也许这不是最佳解决方案,但不清楚还能做什么。

    我的设置:Bitnami Phabricator在AWS上预先配置了实例。

        4
  •  0
  •   phi    3 年前

    看来现在的方法是 support/preamble.php 里面除了

    <?php
    
    $_SERVER['HTTPS'] = true;
    

    如所述 here