28 lines
673 B
Plaintext
28 lines
673 B
Plaintext
{
|
|
|
|
if ((${'mozilla-sync'}{'status'} || 'disabled') eq 'enabled') {
|
|
my $access = ((${'mozilla-sync'}{'access'} || 'private') eq 'public') ? "all":"$localAccess $externalSSLAccess";
|
|
|
|
$OUT .=<<"EOF";
|
|
|
|
WSGIDaemonProcess localhost user=www group=www processes=2 threads=25
|
|
WSGIScriptAlias /mozilla-sync /usr/share/mozilla-sync-server/mozilla-sync-server.wsgi
|
|
WSGISocketPrefix /var/run/mozilla-sync-server.pid
|
|
|
|
<Location /mozilla-sync/>
|
|
Order deny,allow
|
|
Deny from all
|
|
Allow from $access
|
|
SSLRequireSSL on
|
|
|
|
WSGIProcessGroup localhost
|
|
WSGIPassAuthorization On
|
|
</Location>
|
|
|
|
EOF
|
|
}
|
|
else{
|
|
$OUT .= "# Mozilla Sync server is disabled";
|
|
}
|
|
}
|