mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 08:44:09 +02:00
format
This commit is contained in:
parent
33c94449c2
commit
c54302fdaa
1 changed files with 5 additions and 1 deletions
|
|
@ -300,14 +300,18 @@ proxy to allow using a wildcard domain.
|
||||||
|
|
||||||
- Setup `dnsmasq` to resolve `*.haze.test` to your development machine.
|
- Setup `dnsmasq` to resolve `*.haze.test` to your development machine.
|
||||||
- Generate a wildcard ssl certificate for `*.haze.test` using `mkcert`:
|
- Generate a wildcard ssl certificate for `*.haze.test` using `mkcert`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Generate local wildcard certificate
|
# Generate local wildcard certificate
|
||||||
mkcert -cert-file <path-to-your-certificats>haze.test.crt -key-file <path-to-your-certificats>haze.test.key '*.haze.test'
|
mkcert -cert-file <path-to-your-certificats>haze.test.crt -key-file <path-to-your-certificats>haze.test.key '*.haze.test'
|
||||||
```
|
```
|
||||||
|
|
||||||
- Set up a service to run `haze proxy` in the background as your own user. A
|
- Set up a service to run `haze proxy` in the background as your own user. A
|
||||||
systemd user service is recommended (see [haze.service](./haze.service) for an
|
systemd user service is recommended (see [haze.service](./haze.service) for an
|
||||||
example).
|
example).
|
||||||
- Setup a reverse proxy to proxy `*.haze.test` and `haze.test` to the `haze proxy`'s socket. Example for Nginx:
|
- Setup a reverse proxy to proxy `*.haze.test` and `haze.test` to the
|
||||||
|
`haze proxy`'s socket. Example for Nginx:
|
||||||
|
|
||||||
```nginx
|
```nginx
|
||||||
upstream haze-handler {
|
upstream haze-handler {
|
||||||
server unix:/run/haze/haze.sock;
|
server unix:/run/haze/haze.sock;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue