Themes: Data Ownership, Server
Status: 🌱
Tags: resource
Reverse Proxy
A reverse proxy is a intermediary between the internet and webservices. It provides HTTPS certificates and encryption and routes requests through the domain.
Adding a Record:
- Open Cloudflare.
- Click the “Domains” drop down and click “Overview”.
- Click on the server domain name.
- Click on the DNS drop down and click “Records”.
- Click “Add record”, fill out the following:
- Type: A
- Name: *.example-domain-name.org
- IPv4 address: Server Tailscale IP
- Click “Save”.
Generating an API Token:
- Quick search “API Tokens”.
- Click ”+ Create Token”.
- Use the “Edit zone DNS” template.
- In the “Zone Resources” category, click the “Select…” drop down.
- Select the server domain name.
- Click “Continue to summary”.
- Copy the API Token and save it in a password manager.
API Token
NEVER share or post this token. Save it in a trusted password manager.
Set up a https Certificate:
- In a web browser open the NGINX application (replace the IPv4).
http://serverIPv4:81
- Log in using the default credentials outline in the NGINX docker compose YAML.
Username:
admin@example.com
Password:
changeme
- Click on the account icon.
- Change username, email, and password.
- Save the login credentials to a password manager.
- Click on “Certificates”.
- Click “Add Certificate”.
- Select “Let’s Encrypt via DNS”.
- Fill out the following information:
- Domain Names: *.domain.org
- Key Type: ECDSA 256
- DNS Provider: Cloudflare
- Credential File Content: After the ”=” delete and paste in the API token from Cloudflare
Set up a Proxy for NGINX Proxy Manager:
- Click “Host”.
- Click “Proxy Hosts”.
- Click “Add Proxy Host” and fill out the following:
- Domain Names: npm.domain.org
- Scheme: http
- Forward Hostname / IP: server’s IPv4
- Forward Port: 81
- Enable “Block Common Exploits”.
- Click on “SSL” .
- Select “*.domain.org” from the drop down.
- Enable all 4 options.
- Click “Save”.
Congratulations! The Server is Live
Check if everything is working
- On a mobile device using cell service, visit https://npm.domain.org
- Nothing should load
- Install the Tailscale application on the mobile device
- Sign into Tailscale and connect
- Visit https://npm.domain.org
- Success!!!
Back Matter
Next Step: Actual Budget Installation
Previous Step: Domain Acquisition and DNS Management
Parent Page: Home Server Build Guide