Skip to content

Commit

Permalink
Update vps
Browse files Browse the repository at this point in the history
  • Loading branch information
quietsy committed Jan 22, 2025
1 parent dcd2179 commit a186380
Showing 1 changed file with 4 additions and 25 deletions.
29 changes: 4 additions & 25 deletions docs/vps.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,34 +289,13 @@ If you're experiencing problems and you want to restart everything, the correct
- Home - `docker restart wireguard`
- Home - `docker restart swag`

### Authelia
### Authelia / Authentik

If you expose Authelia through the tunnel, you need to make a small adjustment for the redirects to work.
This will make authelia always redirect to https, since traffic through the tunnel is coming over as http but the VPS exposes https.
If you expose Authelia/Authentik through the tunnel, you need to make a small adjustment for the redirects to work.

Edit `authelia-server.conf` under `config/nginx/` and change:
The idea is to force https, since traffic through the tunnel is coming over as http but the VPS exposes https.

```Nginx
proxy_set_header X-Original-URL $scheme://$http_host$request_uri;
```

To:

```Nginx
proxy_set_header X-Original-URL https://$http_host$request_uri;
```

Edit `authelia-location.conf` under `config/nginx/` and change:

```Nginx
auth_request_set $target_url $scheme://$http_host$request_uri;
```

To:

```Nginx
auth_request_set $target_url https://$http_host$request_uri;
```
Edit Authelia/Authentik confs under `config/nginx/`, replace `$scheme` with `https`.

Restart the Home SWAG to apply the changes with `docker restart swag`.

Expand Down

0 comments on commit a186380

Please sign in to comment.