Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------
- Prep Work
- -----------------------------------
- 1. Forward the following ports in the router:
- 443, 10443
- 2. Forward the following ports in the Torguard VPN:
- 10443
- 3. Add the following to the hosts file:
- #Web Servers
- 127.0.0.1 localhost
- 127.0.0.1 [domain_name]
- ::1 localhost
- ::1 [domain_name]
- --------------------------------------
- Set Up Domain Name
- --------------------------------------
- 1. Purchase a domain name from google domains [domain_name]
- 2. Sign up for Cloudflare
- 3. Enter the domain name into Cloudflare, and generate new nameservers
- 4. Enter those custom nameservers into google domain settings
- 5. Have Cloudflare refresh until the site is active
- 6. In Cloudflare, goto: DNS and add the record:
- Type: A, Name: @, IPv4 Address: [VPN IP], TTL: Automatic TTL, then hit 'Add Record'
- 7. On the Cloudflare overview page, change SSL to 'Full (strict)'
- 8. Go back into Google Domains > DNS, and add the registered host
- Host Name: @, IPv4 address: [VPN IP], then click 'Add'
- ---------------------------------------
- Install Caddy Server
- ---------------------------------------
- 1. Install Caddy from the download page
- 2. Choose Windows 64 bit, and make sure to select the tls.dns.cloudflare plugin as well
- 3. Then use the direct download link at the bottom of the page to grab the full custom package
- 4. Extract the downloaded zip file to: C:\caddy\
- 5. Goto localhost:2015 and confirm it doesn't load yet
- 6. Open cmd.exe, and start CaddyServer via commandline:
- cd c:\caddy
- caddy
- 7. Now recheck localhost:2015 and confirm it now says '404 Not Found'
- 8. Drop the Caddyfile, and common.conf file into the C:\caddy\ folder
- ------------------------------------
- Install PHP
- ------------------------------------
- 1. Goto: http://windows.php.net/download/
- 2. Download the PHP 7.0, VC14 x64 Non Thread Safe version (zip file)
- 3. Create a folder called 'php' inside C:\caddy\
- 4. Extract the downloaded zip file to: C:\caddy\php\
- ------------------------------------
- Configure CaddyServer
- ------------------------------------
- 1. Get the Global API key from cloudflare
- 2. Type in cmd.exe:
- setx CLOUDFLARE_EMAIL [EMAIL]
- setx CLOUDFLARE_API_KEY [API Key]
- 3. Re-open cmd.exe, and start CaddyServer via commandline:
- cd c:\caddy
- caddy
- 4. Reverse Proxy should be now running.
- 5. Exit out of the command prompt, and install Caddy as a Windows service.
- -----------------------------------
- To run Caddy as a Windows service:
- -----------------------------------
- 1. Open command prompt as administrator
- 2. Type: nssm install Caddy
- 3. Path: c:\caddy\caddy.exe
- 4. Details tab, display name: Caddy
- 5. Log on tab, click 'This Account'
- This account: [User Account Name]
- Type in the computer password for that specific user account
- 6. Click 'Install Service'
- 7. In the admin command prompt, type: services.msc
- 8. Find Caddy, right click, and hit Start
- 9. Restart computer, and confirm Caddy starts up with Windows by trying the following:
- https://[domain_name]:10443/emby
- https://[domain_name]:10443/sonarr
- https://[domain_name]:10443/couch
- https://[domain_name]:10443/nzbget
- https://[domain_name]:10443/deluge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement