This file contains hidden or 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
# Redirect http:// to https:// | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name _; | |
return 301 https://$host$request_uri; | |
} | |
# Redirect https://www to https:// |
This file contains hidden or 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
#!/bin/bash | |
# Author: Joshua Moon <[email protected]> | |
# Date: 14-May-2016 | |
# Purpose: Creates an up-to-date Cloudflare nginx config file. | |
# License: MIT | |
################################################################################ | |
# INSTRUCTIONS |
This file contains hidden or 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
## | |
# zero trust haproxy ssl-over-tcp config | |
# this config can be put down on any small VPS to transfer traffic over to a trusted service | |
## | |
global | |
log /dev/log local0 | |
log /dev/log local1 notice | |
# change to www on FreeBSD | |
user haproxy | |
group haproxy |