Prep cookbooks for Tor hidden services for Mastodon
This commit is contained in:
@@ -4,3 +4,6 @@ node.default["kosmos-mastodon"]["streaming_port"] = 4000
|
||||
node.default["kosmos-mastodon"]["server_name"] = "kosmos.social"
|
||||
node.default["kosmos-mastodon"]["redis_url"] = "redis://localhost:6379/1"
|
||||
node.default["kosmos-mastodon"]["sidekiq_threads"] = 25
|
||||
node.default["tor"]["HiddenServices"]["mastodon"] = {
|
||||
"HiddenServicePorts" => ["80 127.0.0.1:80"]
|
||||
}
|
||||
|
||||
@@ -15,3 +15,4 @@ depends "application_javascript"
|
||||
depends "postgresql"
|
||||
depends "kosmos-postgresql"
|
||||
depends "backup"
|
||||
depends "tor-full"
|
||||
|
||||
@@ -28,6 +28,7 @@ mastodon_path = node["kosmos-mastodon"]["directory"]
|
||||
server_name = node["kosmos-mastodon"]["server_name"]
|
||||
|
||||
include_recipe "kosmos-nginx"
|
||||
include_recipe "tor-full"
|
||||
|
||||
template "#{node['nginx']['dir']}/sites-available/#{server_name}" do
|
||||
source 'nginx_conf_mastodon.erb'
|
||||
|
||||
Reference in New Issue
Block a user