good morning!!!!

Skip to content
Snippets Groups Projects
Commit 03ed7053 authored by Garet Halliday's avatar Garet Halliday
Browse files

thinking

parent d730d1e5
No related branches found
Tags v0.2.23
No related merge requests found
## Server Blocks
Server blocks will be matched in order by their keys. Different SSL configurations may not be used on the same host port pair
(due to technical limitations).
## Directives
| Directive | Description |
|------------------|--------------------------------------------------------------------------|
| ssl | ssl configuration for this server |
| allow_parameters | set which initial parameters are allowed |
| user | rewrite username |
| password | use global password instead of password provided by pool |
| database | rewrite database |
| parameters | rewrite parameters |
| {provider} | a pool provider. if pool is not found, the next provider will be checked |
package gatcaddyfile
import (
"log"
"github.com/caddyserver/caddy/v2"
"github.com/caddyserver/caddy/v2/caddyconfig"
"github.com/caddyserver/caddy/v2/caddyconfig/caddyfile"
......@@ -13,6 +15,9 @@ func init() {
type ServerType struct{}
func (ServerType) Setup(blocks []caddyfile.ServerBlock, m map[string]any) (*caddy.Config, []caddyconfig.Warning, error) {
// TODO implement me
panic("implement me")
for _, block := range blocks {
log.Printf("%#v", block)
}
return nil, nil, nil
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment