Compare commits
1 Commits
a5d09ec6cd
...
notes/ejab
| Author | SHA1 | Date | |
|---|---|---|---|
|
d000d89409
|
@@ -37,7 +37,6 @@
|
|||||||
"timezone_iii::debian",
|
"timezone_iii::debian",
|
||||||
"ntp::default",
|
"ntp::default",
|
||||||
"ntp::apparmor",
|
"ntp::apparmor",
|
||||||
"kosmos-base::journald_conf",
|
|
||||||
"kosmos-base::systemd_emails",
|
"kosmos-base::systemd_emails",
|
||||||
"apt::unattended-upgrades",
|
"apt::unattended-upgrades",
|
||||||
"kosmos-base::firewall",
|
"kosmos-base::firewall",
|
||||||
|
|||||||
@@ -27,7 +27,6 @@
|
|||||||
include_recipe 'apt'
|
include_recipe 'apt'
|
||||||
include_recipe 'timezone_iii'
|
include_recipe 'timezone_iii'
|
||||||
include_recipe 'ntp'
|
include_recipe 'ntp'
|
||||||
include_recipe 'kosmos-base::journald_conf'
|
|
||||||
include_recipe 'kosmos-base::systemd_emails'
|
include_recipe 'kosmos-base::systemd_emails'
|
||||||
|
|
||||||
node.override["apt"]["unattended_upgrades"]["allowed_origins"] = [
|
node.override["apt"]["unattended_upgrades"]["allowed_origins"] = [
|
||||||
|
|||||||
@@ -110,7 +110,6 @@ hosts = [
|
|||||||
access_persistent: muc_create
|
access_persistent: muc_create
|
||||||
access_register: muc_create
|
access_register: muc_create
|
||||||
max_user_conferences: 1000
|
max_user_conferences: 1000
|
||||||
max_users: 2000
|
|
||||||
default_room_options:
|
default_room_options:
|
||||||
mam: true
|
mam: true
|
||||||
preload_rooms: true
|
preload_rooms: true
|
||||||
|
|||||||
@@ -185,11 +185,8 @@ api_permissions:
|
|||||||
what:
|
what:
|
||||||
- "add_rosteritem"
|
- "add_rosteritem"
|
||||||
- "delete_rosteritem"
|
- "delete_rosteritem"
|
||||||
- "get_vcard2"
|
|
||||||
- "muc_register_nick"
|
|
||||||
- "private_set"
|
|
||||||
- "send_message"
|
- "send_message"
|
||||||
- "send_stanza"
|
- "private_set"
|
||||||
|
|
||||||
language: "en"
|
language: "en"
|
||||||
|
|
||||||
@@ -261,7 +258,10 @@ modules:
|
|||||||
transport: tcp
|
transport: tcp
|
||||||
restricted: true
|
restricted: true
|
||||||
mod_vcard:
|
mod_vcard:
|
||||||
|
db_type: ldap
|
||||||
search: false
|
search: false
|
||||||
|
ldap_vcard_map:
|
||||||
|
PHOTO: {"%s": [jpegPhoto]}
|
||||||
mod_vcard_xupdate: {}
|
mod_vcard_xupdate: {}
|
||||||
mod_avatar: {}
|
mod_avatar: {}
|
||||||
mod_version: {}
|
mod_version: {}
|
||||||
|
|||||||
@@ -265,44 +265,6 @@ service "mastodon-streaming" do
|
|||||||
action [:enable, :start]
|
action [:enable, :start]
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
|
||||||
# Delete cached remote media older than 30 days
|
|
||||||
# Will be re-fetched if necessary
|
|
||||||
#
|
|
||||||
|
|
||||||
systemd_unit 'mastodon-delete-old-media-cache.service' do
|
|
||||||
content({
|
|
||||||
Unit: {
|
|
||||||
Description: 'Delete old Mastodon media cache'
|
|
||||||
},
|
|
||||||
Service: {
|
|
||||||
Type: "oneshot",
|
|
||||||
WorkingDirectory: mastodon_path,
|
|
||||||
Environment: "RAILS_ENV=#{rails_env}",
|
|
||||||
ExecStart: "#{bundle_path} exec bin/tootctl media remove --days 30",
|
|
||||||
}
|
|
||||||
})
|
|
||||||
triggers_reload true
|
|
||||||
action [:create]
|
|
||||||
end
|
|
||||||
|
|
||||||
systemd_unit 'mastodon-delete-old-media-cache.timer' do
|
|
||||||
content({
|
|
||||||
Unit: {
|
|
||||||
Description: 'Delete old Mastodon media cache'
|
|
||||||
},
|
|
||||||
Timer: {
|
|
||||||
OnCalendar: '*-*-* 00:00:00',
|
|
||||||
Persistent: 'true'
|
|
||||||
},
|
|
||||||
Install: {
|
|
||||||
WantedBy: 'timer.target'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
triggers_reload true
|
|
||||||
action [:create, :enable, :start]
|
|
||||||
end
|
|
||||||
|
|
||||||
firewall_rule "mastodon_app" do
|
firewall_rule "mastodon_app" do
|
||||||
port node['kosmos-mastodon']['app_port']
|
port node['kosmos-mastodon']['app_port']
|
||||||
source "10.1.1.0/24"
|
source "10.1.1.0/24"
|
||||||
|
|||||||
Reference in New Issue
Block a user