Jump to content

Services:Service Examples

From jb-vpn.uk Wiki

Caddy snippets for /etc/caddy/Caddyfile. After editing, run caddy validate and systemctl reload caddy.

MediaWiki (VPS Docker)

[edit]

Already configured; reference:

wiki.jb-vpn.uk {
	reverse_proxy http://127.0.0.1:8010 {
		header_up Host {host}
		header_up X-Real-IP {remote}
		header_up X-Forwarded-For {remote}
		header_up X-Forwarded-Proto {scheme}
	}
}

Web application on VPS

[edit]
app.jb-vpn.uk {
	reverse_proxy 127.0.0.1:8008
}

API on VPS with path prefix

[edit]
api.jb-vpn.uk {
	reverse_proxy http://127.0.0.1:3000 {
		header_up Host {host}
		header_up X-Forwarded-Proto {scheme}
	}
}

Service on NAS (HTTP)

[edit]
internal.jb-vpn.uk {
	reverse_proxy http://10.8.0.2:9000 {
		header_up Host {host}
		header_up X-Forwarded-Proto {scheme}
	}
}

Plex (NAS, custom headers)

[edit]

See the plex.jb-vpn.uk block in /etc/caddy/Caddyfile for the full Plex header set.

DSM (NAS, HTTPS upstream)

[edit]

See the dsm.jb-vpn.uk block in /etc/caddy/Caddyfile (tls_insecure_skip_verify on the upstream transport).

Static files on VPS

[edit]
vps.jb-vpn.uk {
	root * /var/www/html
	file_server
}
[edit]
  • [Step By Step Step-by-Step Process]
  • [Configuration Options Configuration Options]