Skip to content

Commit

Permalink
add httpd.conf example to redirect 80 to 443
Browse files Browse the repository at this point in the history
  • Loading branch information
rubyroobs committed Oct 11, 2024
1 parent 1e3f9c6 commit 593018b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,17 @@ rc_reload=NO
rc_cmd $1
```

`rubyshd` doesn't support plaintext HTTP, so you may also want to redirect HTTP traffic on that port to 443. An example [`httpd.conf(5)`](https://man.openbsd.org/httpd.conf.5)

```
server "ruby.sh" {
listen on * port 80
location * {
block return 301 "https://$HTTP_HOST$REQUEST_URI"
}
}
```

## Future work

- Better tests and CI
Expand Down

0 comments on commit 593018b

Please sign in to comment.