Skip to content

Commit

Permalink
Update README.md - Add Caddy sample
Browse files Browse the repository at this point in the history
  • Loading branch information
feilen authored Nov 20, 2024
1 parent f1404b0 commit dc21c68
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,46 @@ pm2 save
```
Make sure to do `pm2 startup` if you haven't already so it autostarts

## Sample Caddy config

Caddy can be used to allow streaming to the web over HTTPS.

```
media.example.com {
# VRChat (AVPro) doesn't like tls1.3
tls {
# Due to a lack of DHE support, you -must- use an ECDSA cert to support IE 11 on Windows 7
ciphers TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
}
header Strict-Transport-Security "max-age=63072000"
header X-Content-Type-Options nosniff
header Content-Security-Policy "
default-src 'self';
style-src 'self';
script-src 'self';
font-src 'self';
img-src data: 'self';
form-action 'self';
connect-src 'self';
frame-ancestors 'none';
"
# Videos don't require sign-in, just the interface
@auth {
not path /v/*
}
basicauth @auth {
vrcuser MY_PASSWORD_HASH # Password can be obtained with `caddy hash-password`
}
reverse_proxy 1.2.3.4:4000 {
}
}
```

## Usage

Go to the web interface (default port is 4000), select media, and copy the link. Paste the link into the vrchat client to play the media.
Expand Down

0 comments on commit dc21c68

Please sign in to comment.