adde example files
This commit is contained in:
parent
2c7a47e377
commit
8f485ccb4f
3
examples/host1/commands
Normal file
3
examples/host1/commands
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
touch /var/www/htdocs/index.html
|
27
examples/host1/etc/httpd.conf
Normal file
27
examples/host1/etc/httpd.conf
Normal file
@ -0,0 +1,27 @@
|
||||
# $OpenBSD: httpd.conf,v 1.20 2018/06/13 15:08:24 reyk Exp $
|
||||
|
||||
server "example.com" {
|
||||
listen on * port 80
|
||||
location "/.well-known/acme-challenge/*" {
|
||||
root "/acme"
|
||||
request strip 2
|
||||
}
|
||||
location * {
|
||||
block return 302 "https://$HTTP_HOST$REQUEST_URI"
|
||||
}
|
||||
}
|
||||
|
||||
server "example.com" {
|
||||
listen on * tls port 443
|
||||
tls {
|
||||
certificate "/etc/ssl/example.com.fullchain.pem"
|
||||
key "/etc/ssl/private/example.com.key"
|
||||
}
|
||||
location "/pub/*" {
|
||||
directory auto index
|
||||
}
|
||||
location "/.well-known/acme-challenge/*" {
|
||||
root "/acme"
|
||||
request strip 2
|
||||
}
|
||||
}
|
1
examples/host1/files
Normal file
1
examples/host1/files
Normal file
@ -0,0 +1 @@
|
||||
etc/httpd.conf:root:wheel:0644:/etc/httpd.conf
|
1
examples/host1/groups
Normal file
1
examples/host1/groups
Normal file
@ -0,0 +1 @@
|
||||
fake:1001
|
1
examples/host1/packages
Normal file
1
examples/host1/packages
Normal file
@ -0,0 +1 @@
|
||||
vim--no_x11
|
1
examples/host1/services
Normal file
1
examples/host1/services
Normal file
@ -0,0 +1 @@
|
||||
httpd
|
1
examples/host1/users
Normal file
1
examples/host1/users
Normal file
@ -0,0 +1 @@
|
||||
fake:1001:1001:Fake_User:/home/fake:/bin/ksh:$2b$09$NvIvfvzbA7jwlbofXpJgQOKmYeponYOOBzsjcQCCJX2AfC9wy0jK2
|
Loading…
Reference in New Issue
Block a user