Compare commits
4 Commits
master
...
bugfix/499
Author | SHA1 | Date | |
---|---|---|---|
|
0cae8dca69 | ||
|
68df49037c | ||
|
773950b9a5 | ||
|
f39a1ed250 |
@ -1,15 +0,0 @@
|
||||
# Mastodon
|
||||
|
||||
Running on kosmos.social
|
||||
|
||||
## Ops
|
||||
|
||||
### Enable maintance mode
|
||||
|
||||
Return a 503 and maintance page for all requests:
|
||||
|
||||
knife ssh -p2222 -a knife_zero.host "role:openresty_proxy" "sudo cp -p /var/www/maintenance.html /var/www/kosmos.social/public/ && sudo systemctl reload openresty"
|
||||
|
||||
### Stop maintenance mode
|
||||
|
||||
knife ssh -p2222 -a knife_zero.host "role:openresty_proxy" "sudo rm /var/www/kosmos.social/public/maintenance.html && sudo systemctl reload openresty"
|
@ -30,6 +30,9 @@ include_recipe 'ntp'
|
||||
include_recipe 'kosmos-base::journald_conf'
|
||||
include_recipe 'kosmos-base::systemd_emails'
|
||||
|
||||
node.override["apt"]["unattended_upgrades"]["enable"] = true
|
||||
node.override["apt"]["unattended_upgrades"]["mail_only_on_error"] = false
|
||||
node.override["apt"]["unattended_upgrades"]["sender"] = "ops@kosmos.org"
|
||||
node.override["apt"]["unattended_upgrades"]["allowed_origins"] = [
|
||||
"${distro_id}:${distro_codename}-security",
|
||||
"${distro_id}:${distro_codename}-updates"
|
||||
|
@ -21,7 +21,6 @@ bash 'build_btcpay' do
|
||||
systemctl stop btcpayserver.service
|
||||
./build.sh
|
||||
EOH
|
||||
environment "DOTNET_CLI_TELEMETRY_OPTOUT" => 1
|
||||
action :nothing
|
||||
notifies :restart, "service[btcpayserver]", :delayed
|
||||
end
|
||||
@ -88,7 +87,7 @@ systemd_unit 'btcpayserver.service' do
|
||||
Group: node['bitcoin']['usergroup'],
|
||||
Type: 'simple',
|
||||
WorkingDirectory: node['btcpay']['source_dir'],
|
||||
Environment: "'BTCPAY_EXPLORERPOSTGRES=#{nbxpg_connect}' 'DOTNET_CLI_TELEMETRY_OPTOUT=1'",
|
||||
Environment: defined?(nbxpg_connect) ? "'BTCPAY_EXPLORERPOSTGRES=#{nbxpg_connect}'" : '',
|
||||
ExecStart: "#{node['btcpay']['source_dir']}/run.sh --conf=#{node['btcpay']['config_path']}",
|
||||
PIDFile: '/run/btcpayserver/btcpayserver.pid',
|
||||
Restart: 'on-failure',
|
||||
@ -104,8 +103,6 @@ systemd_unit 'btcpayserver.service' do
|
||||
verify false
|
||||
triggers_reload true
|
||||
action [:create]
|
||||
# reload is not applicable
|
||||
notifies :restart, "service[btcpayserver]", :delayed
|
||||
end
|
||||
|
||||
service "btcpayserver" do
|
||||
|
Loading…
x
Reference in New Issue
Block a user