Fix indent
This commit is contained in:
parent
f5d61167b8
commit
21c9e41feb
1 changed files with 20 additions and 20 deletions
|
@ -336,23 +336,23 @@ class mastodon (
|
||||||
post_hook_commands => ['systemctl start apache2'],
|
post_hook_commands => ['systemctl start apache2'],
|
||||||
}
|
}
|
||||||
apache::vhost { $hostname:
|
apache::vhost { $hostname:
|
||||||
ensure => $ensure,
|
ensure => $ensure,
|
||||||
access_log_file => $hostname,
|
access_log_file => $hostname,
|
||||||
add_listen => false,
|
add_listen => false,
|
||||||
error_log_file => $hostname,
|
error_log_file => $hostname,
|
||||||
docroot => "${mastodon_home}/live/public",
|
docroot => "${mastodon_home}/live/public",
|
||||||
manage_docroot => false,
|
manage_docroot => false,
|
||||||
proxy_preserve_host => true,
|
proxy_preserve_host => true,
|
||||||
proxy_add_headers => true,
|
proxy_add_headers => true,
|
||||||
port => 443,
|
port => 443,
|
||||||
priority => 15,
|
priority => 15,
|
||||||
protocols => [
|
protocols => [
|
||||||
'h2',
|
'h2',
|
||||||
'http/1.1',
|
'http/1.1',
|
||||||
],
|
],
|
||||||
protocols_honor_order => true,
|
protocols_honor_order => true,
|
||||||
proxy_requests => false,
|
proxy_requests => false,
|
||||||
proxy_pass => [
|
proxy_pass => [
|
||||||
{ 'path' => '/500.html', 'url' => '!' },
|
{ 'path' => '/500.html', 'url' => '!' },
|
||||||
{ 'path' => '/sw.js', 'url' => '!' },
|
{ 'path' => '/sw.js', 'url' => '!' },
|
||||||
{ 'path' => '/robots.txt', 'url' => '!' },
|
{ 'path' => '/robots.txt', 'url' => '!' },
|
||||||
|
@ -360,7 +360,7 @@ class mastodon (
|
||||||
{ 'path' => '/browserconfig.xml', 'url' => '!' },
|
{ 'path' => '/browserconfig.xml', 'url' => '!' },
|
||||||
{ 'path' => '/mask-icon.svg', 'url' => '!' },
|
{ 'path' => '/mask-icon.svg', 'url' => '!' },
|
||||||
],
|
],
|
||||||
custom_fragment => '
|
custom_fragment => '
|
||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
|
|
||||||
ProxyPass /api/v1/streaming ws://localhost:4000
|
ProxyPass /api/v1/streaming ws://localhost:4000
|
||||||
|
@ -368,18 +368,18 @@ class mastodon (
|
||||||
ProxyPass / http://localhost:3000/
|
ProxyPass / http://localhost:3000/
|
||||||
ProxyPassReverse / http://localhost:3000/
|
ProxyPassReverse / http://localhost:3000/
|
||||||
',
|
',
|
||||||
proxy_pass_match => [
|
proxy_pass_match => [
|
||||||
{ 'path' => '^(/.*\.(png|ico)$)', 'url' => '!' },
|
{ 'path' => '^(/.*\.(png|ico)$)', 'url' => '!' },
|
||||||
{ 'path' => '^/(assets|avatars|emoji|headers|packs|sounds|system)', 'url' => '!' },
|
{ 'path' => '^/(assets|avatars|emoji|headers|packs|sounds|system)', 'url' => '!' },
|
||||||
],
|
],
|
||||||
request_headers => [
|
request_headers => [
|
||||||
'set X-Forwarded-Proto "https"',
|
'set X-Forwarded-Proto "https"',
|
||||||
],
|
],
|
||||||
headers => [
|
headers => [
|
||||||
'always set Strict-Transport-Security "max-age=31536000"',
|
'always set Strict-Transport-Security "max-age=31536000"',
|
||||||
'always set Strict-Transport-Security "max-age=15552001; includeSubDomains"',
|
'always set Strict-Transport-Security "max-age=15552001; includeSubDomains"',
|
||||||
],
|
],
|
||||||
directories => [
|
directories => [
|
||||||
{
|
{
|
||||||
'path' => '^/(assets|avatars|emoji|headers|packs|sounds|system)',
|
'path' => '^/(assets|avatars|emoji|headers|packs|sounds|system)',
|
||||||
'provider' => 'locationmatch',
|
'provider' => 'locationmatch',
|
||||||
|
@ -393,7 +393,7 @@ class mastodon (
|
||||||
'require' => 'all granted',
|
'require' => 'all granted',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
error_documents => [
|
error_documents => [
|
||||||
{ 'error_code' => '500', 'document' => '/500' },
|
{ 'error_code' => '500', 'document' => '/500' },
|
||||||
{ 'error_code' => '501', 'document' => '/501' },
|
{ 'error_code' => '501', 'document' => '/501' },
|
||||||
{ 'error_code' => '502', 'document' => '/502' },
|
{ 'error_code' => '502', 'document' => '/502' },
|
||||||
|
|
Loading…
Reference in a new issue