Caddy web server configuration

main
Bob Mottram 2019-11-12 21:50:15 +00:00
parent 5f7b8d383c
commit 9188d6fdcb
3 changed files with 28 additions and 0 deletions

View File

@ -177,6 +177,8 @@ And restart the web server:
systemctl restart nginx
```
If you are using the [Caddy web server](https://caddyserver.com) then see *caddy.example.conf*
## Running Unit Tests
To run the unit tests:

23
caddy.example.conf 100644
View File

@ -0,0 +1,23 @@
# Caddy configuration file for running epicyon on example.com
example.com {
tls {
# Valid values are rsa2048, rsa4096, rsa8192, p256, and p384.
# Default is currently p256.
key_type p384
}
header / Strict-Transport-Security "max-age=31556925"
header / X-Content-Type-Options "nosniff"
header / X-Download-Options "noopen"
header / X-Frame-Options "DENY"
header / X-Permitted-Cross-Domain-Policies "none"
header / X-Robots-Tag "noindex,nofollow,nosnippet,noarchive"
header / X-XSS-Protection "1; mode=block"
proxy / http://localhost:7156 {
transparent
timeout 10800s
}
}
# eof

View File

@ -1397,6 +1397,9 @@
<div class="shell">
systemctl restart nginx
</div>
<p class="intro">
If you are using the <a href="https://caddyserver.com">Caddy web server</a> then see caddy.example.conf
</p>
<p class="intro">
Now you can navigate to your domain and register an account. The first account becomes the administrator.
</p>