I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| [General] | |
| skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1 | |
| bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
| # dns-server = 119.29.29.29, 223.5.5.5, 114.114.114.114 | |
| loglevel = notify | |
| [Proxy] | |
| BJ-All = custom | |
| BJ-HK-Azure = custom | |
| BJ-US-Azure = custom |
| <?php | |
| require('mysql.php'); // see https://gist.github.com/paxmanchris/f5d4b94f67a8acd8cefc | |
| $me = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME']; | |
| $sso_secret = 'YOUR_SSO_PROVIDER_KEY_HERE'; | |
| $discourse_url = 'http://example.com'; | |
| if(!empty($_GET) and isset($_GET['sso'])){ |
| upstream discourse { | |
| #fail_timeout is optional; I throw it in to see errors quickly | |
| server 127.0.0.1:4578 fail_timeout=5; | |
| } | |
| # configure the virtual host | |
| server { | |
| # replace with your domain name | |
| server_name discourse.example.com; | |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| # Set variables in .bashrc file | |
| # don't forget to change your path correctly! | |
| export GOPATH=$HOME/golang | |
| export GOROOT=/usr/local/opt/go/libexec | |
| export PATH=$PATH:$GOPATH/bin | |
| export PATH=$PATH:$GOROOT/bin |
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server ipv6only=on; | |
| listen 443 ssl; | |
| root /var/www/lumen/public; | |
| index index.php index.html index.htm; | |
| server_name server_domain_or_IP; |
| [General] | |
| loglevel = notify | |
| bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24 | |
| [Proxy] | |
| // ADD YOUR PROXY HERE, DON'T FORGET TO REMOVE # | |
| # Proxy = http,$IP,$PORT,$USERNAME,$PASSWORD | |
| # Proxy = https,$IP,$PORT,$USERNAME,$PASSWORD |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |