This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
import proxy | |
from proxy.common import pki | |
PASSWORD = '12dadadadlkahdlashjdlasdlalsdhlh3' | |
SUBJECT = '/CN=localhost' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"encoding/hex" | |
"net/http" | |
"os" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
What diverts from the official manual: | |
Install phabricator into: `/var/www/html` | |
- other locations conflicts with selinux, causes `file not found` errors | |
By default the php-fpm listens on unit socket, this causes `bad gateway error`, to fix: | |
- configure php-fpm to listen on port 9000, config at: `/etc/php-fpm.d/www.conf` | |
- configure nginx in `/etc/nginx/nginx.conf` to pass to unix socket, its location is: `unix:/run/php-fpm/www.sock` | |
- start and enable php-fpm: `systemctl start php-fpm`, `systemctl enable php-fpm` |