Had to hard-code $_SERVER['HTTPS'] = true in index.php for Phorge (Phabricator)

26 Views Asked by At

I was following a guide to enable SSL with nginx on my Phorge machine, and for some reason, all assets like CSS and JS still went to http. When adding return 301 in nginx config, the site didn't load because of faulty redirect. Instead I could hard-code

$_SERVER['HTTPS'] = true

in index.php, which made all assets load via https.

This is by design or? What's the proper configuration here?

0

There are 0 best solutions below