nebula/radicale/main.tf

67 lines
1.2 KiB
Terraform
Raw Normal View History

2018-08-21 03:28:10 +00:00
module "container" {
name = "radicale"
source = "../modules/container"
2019-05-16 10:36:26 +00:00
image = "tomsquest/docker-radicale:amd64"
2018-08-21 03:28:10 +00:00
2019-06-28 18:22:44 +00:00
resource {
2021-04-14 06:38:31 +00:00
memory = 2000
memory_swap = 2000
2019-06-28 18:22:44 +00:00
}
2018-08-21 03:28:10 +00:00
web {
expose = true
port = 5232
host = "${var.domain}"
}
2018-08-21 03:28:10 +00:00
volumes = [
{
host_path = "/mnt/xwing/data/radicale"
container_path = "/data"
},
{
host_path = "/mnt/xwing/config/radicale"
container_path = "/config"
},
]
2019-05-16 10:36:26 +00:00
uploads = [
{
content = <<EOT
# See radicale.org/configuration/
[server]
hosts = 0.0.0.0:5232
# Max parallel connections
max_connections = 10
[auth]
# Authentication method
# Value: none | htpasswd | remote_user | http_x_remote_user
type = htpasswd
htpasswd_filename = /config/users
2021-04-14 07:00:35 +00:00
htpasswd_encryption = bcrypt
2019-05-16 10:36:26 +00:00
[storage]
filesystem_folder = /data/collections
[logging]
2021-04-14 07:00:35 +00:00
level=warning
2019-05-16 10:36:26 +00:00
[headers]
# Additional HTTP headers
X-Powered-By: Allomancy
Server: Blackbox
EOT
2021-04-14 07:00:35 +00:00
file = "/config/config"
2019-05-16 10:36:26 +00:00
},
{
content = <<EOT
2021-04-14 07:00:35 +00:00
nemo:$2y$05$vC1WTAuKn2xuDYZ6I3ucxuPnCrtZrVKzdDHSYhqCegi97RM/pdzXW
axy:$2b$10$iqCLs3F1IRDBoSGxGlsOFO9C3peh8QH14hMnHN4o6oqu21PWL9vu2
2019-05-16 10:36:26 +00:00
EOT
file = "/config/users"
},
]
}