5 # Copyright:: 2024, OpenStreetMap Foundation
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # https://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
20 include_recipe "wordpress"
22 passwords = data_bag_item("birthday20", "passwords")
23 # wp2fa_encrypt_keys = data_bag_item("birthday20", "wp2fa_encrypt_keys")
25 directory "/srv/birthday20.openstreetmap.org" do
31 # wordpress_site "birthday20.openstreetmap.org" do
32 # aliases ["birthday20.osm.org", "birthday20.openstreetmap.com",
33 # "birthday20.openstreetmap.net", "birthday20.openstreetmaps.org"]
34 # directory "/srv/birthday20.openstreetmap.org/wp"
35 # database_name "osm-birthday20"
36 # database_user "osm-birthday20-user"
37 # database_password passwords["osm-birthday20-user"]
38 # wp2fa_encrypt_key wp2fa_encrypt_keys["key"]
39 # fpm_prometheus_port 11403
42 # wordpress_plugin "birthday20.openstreetmap.org-shareadraft" do
44 # plugin "shareadraft"
45 # site "birthday20.openstreetmap.org"
48 # wordpress_plugin "birthday20.openstreetmap.org-public-post-preview" do
49 # plugin "public-post-preview"
50 # site "birthday20.openstreetmap.org"
53 template "/etc/cron.daily/birthday20-backup" do
54 source "backup-birthday20.cron.erb"
58 variables :passwords => passwords
61 ssl_certificate "birthday20.openstreetmap.org" do
62 domains ["birthday20.openstreetmap.org", "birthday20.osm.org", "birthday20.openstreetmap.com",
63 "birthday20.openstreetmap.net", "birthday20.openstreetmaps.org"]