hosts:virtual_machines:web:userhomes_hosting
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| hosts:virtual_machines:web:userhomes_hosting [2023/08/30 18:03] – created netbox | hosts:virtual_machines:web:userhomes_hosting [2025/03/29 07:03] (current) – [What if I want to use a custom domain?] merlin | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ^ | [[https:// | ^ | [[https:// | ||
| [[meta: | [[meta: | ||
| + | |||
| + | An nginx server configured to host users' '' | ||
| + | |||
| + | The sandbox VM exports users home directories as an NFS share, which is mounted by this VM. You can find the configuration [[https:// | ||
| + | |||
| + | ===== What if I want to use a custom domain? ===== | ||
| + | |||
| + | This is totally possible by adding the domain and forwarding it manually to nginx. See the step-by-step below. Some steps require an admin, so please contact an admin if you would like this (we're friendly, I promise!). | ||
| + | |||
| + | Currently working examples of this include https:// | ||
| + | |||
| + | 1. (Admin required) Add the domain to the users account. For instance, " | ||
| + | |||
| + | **Note: subdomains like www. are not automatically included, so it's usually smartest to add them manually.** \\ | ||
| + | |||
| + | Further Note: wildcard domains aren't handled well by our Traefik provider, so putting a wildcard domain will likely require extra configuration to make work. Ask an admin! \\ | ||
| + | |||
| + | 2. Go into the console ([[https:// | ||
| + | |||
| + | 3. Add a new proxy rule with the following settings. Note: You'll need to do this for each subdomain (which will usually be at least " | ||
| + | |||
| + | **What to proxy:** | ||
| + | |||
| + | Domain: < | ||
| + | Path prefix: / \\ | ||
| + | |||
| + | **Where to proxy to:** | ||
| + | |||
| + | Target IP: 192.168.0.14 (This is the internal IP address of [[hosts: | ||
| + | Target Port: 8181 (This is the port where nginx is expecting traffic to come through on) \\ | ||
| + | Does the target expect HTTPS? No (SSL termination is handled seperately by traefik) \\ | ||
| + | |||
| + | **Advanced** | ||
| + | |||
| + | Strip path prefix before sending to app? No \\ | ||
| + | Redirect HTTP to HTTPS? Yes \\ | ||
| + | Override the Host header: <your username> | ||
| + | |||
hosts/virtual_machines/web/userhomes_hosting.1693418606.txt.gz · Last modified: 2023/08/30 18:03 by netbox
