mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
setup: Move app data files into respective apps
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
fdcbd46513
commit
ff247fa5aa
51 files changed
No files matched your search
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<service>
|
||||
<short>infinoted</short>
|
||||
<description>infinoted is a dedicated server for Gobby which allows clients to edit plain text documents and source files collaboratively over network. Enable this if you are running an infinoted server that helps Gobby clients to collaborate with each other.</description>
|
||||
<port protocol="tcp" port="6523"/>
|
||||
</service>
|
||||
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<service>
|
||||
<short>Matrix Synapse</short>
|
||||
<description>Matrix is a Federated IM, VoIP and Video server. In Matrix, every user runs one or more Matrix clients, which connect through to a Matrix homeserver. The homeserver stores all their personal chat history and user account information, much as a mail client connects through to an IMAP/SMTP server. Enable this if you are running a Matrix Synapse homeserver to create local Matrix accounts that can federate with accounts on other servers.</description>
|
||||
<port protocol="tcp" port="8448"/>
|
||||
</service>
|
||||
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<service>
|
||||
<short>Minetest Server</short>
|
||||
<description>Minetest is a multiplayer infinite-world block sandbox.</description>
|
||||
<port protocol="udp" port="30000"/>
|
||||
</service>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<service>
|
||||
<short>Mumble Voice Chat Server</short>
|
||||
<description>Mumble is an open source, low-latency, encrypted, high quality voice chat software primarily intended for use while gaming. Mumble uses a client-server architecture which allows users to talk to each other via the same server. Enable this if you are running a Mumble server and if you wish to connect external clients such as Mumble desktop client and Plumble Android app to your Mumble server.</description>
|
||||
<port protocol="tcp" port="64738"/>
|
||||
<port protocol="udp" port="64738"/>
|
||||
</service>
|
||||
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<service>
|
||||
<short>Quassel IRC</short>
|
||||
<description>Quassel is a distributed IRC client, meaning that one or more clients can attach to and detach from the central core.</description>
|
||||
<port protocol="tcp" port="4242"/>
|
||||
</service>
|
||||
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<service>
|
||||
<short>Real-time Transport Protocol</short>
|
||||
<description>RTP is a protocol for delivering real-time data such as audio and video. Enable this if you run an internet telephony server using XMPP, SIP or H.323 and wish to enable audio and video communications.</description>
|
||||
<port protocol="udp" port="1024-65535"/>
|
||||
</service>
|
||||
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<service>
|
||||
<short>Shadowsocks client SOCKS5 proxy</short>
|
||||
<description>Shadowsocks is a lightweight and secure SOCKS5 proxy, designed to protect your Internet traffic. Enable this service if you are running a Shadowsocks client, and want to provide a SOCKS5 proxy to clients on this network.</description>
|
||||
<port protocol="tcp" port="1080"/>
|
||||
</service>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<service>
|
||||
<short>Tahoe-LAFS</short>
|
||||
<description>Tahoe-LAFS is a distributed file storage system</description>
|
||||
<port protocol="tcp" port="5678"/>
|
||||
<port protocol="tcp" port="3456"/>
|
||||
</service>
|
||||
@@ -1,79 +0,0 @@
|
||||
(*
|
||||
Module: Pagekite
|
||||
Parses /etc/pagekite.d/
|
||||
|
||||
Author: Michael Pimmer <blubb@fonfon.at>
|
||||
|
||||
About: License
|
||||
This file is licenced under the LGPL v2+, like the rest of Augeas.
|
||||
*)
|
||||
|
||||
module Pagekite =
|
||||
autoload xfm
|
||||
|
||||
(* View: lns *)
|
||||
|
||||
(* Variables *)
|
||||
let equals = del /[ \t]*=[ \t]*/ "="
|
||||
let neg2 = /[^# \n\t]+/
|
||||
let neg3 = /[^# \:\n\t]+/
|
||||
let eol = del /\n/ "\n"
|
||||
(* Match everything from here to eol, cropping whitespace at both ends *)
|
||||
let to_eol = /[^ \t\n](.*[^ \t\n])?/
|
||||
|
||||
(* A key followed by comma-separated values
|
||||
k: name of the key
|
||||
key_sep: separator between key and values
|
||||
value_sep: separator between values
|
||||
sto: store for values
|
||||
*)
|
||||
let key_csv_line (k:string) (key_sep:lens) (value_sep:lens) (sto:lens) =
|
||||
[ key k . key_sep . [ seq k . sto ] .
|
||||
[ seq k . value_sep . sto ]* . Util.eol ]
|
||||
|
||||
(* entries for pagekite.d/10_account.rc *)
|
||||
let domain = [ key "domain" . equals . store neg2 . Util.comment_or_eol ]
|
||||
let frontend = Build.key_value_line ("frontend" | "frontends")
|
||||
equals (store Rx.neg1)
|
||||
let host = Build.key_value_line "host" equals (store Rx.ip)
|
||||
let ports = key_csv_line "ports" equals Sep.comma (store Rx.integer)
|
||||
let protos = key_csv_line "protos" equals Sep.comma (store Rx.word)
|
||||
|
||||
(* entries for pagekite.d/20_frontends.rc *)
|
||||
let kitesecret = Build.key_value_line "kitesecret" equals (store Rx.space_in)
|
||||
let kv_frontend = Build.key_value_line ( "kitename" | "fe_certname" |
|
||||
"ca_certs" | "tls_endpoint" )
|
||||
equals (store Rx.neg1)
|
||||
|
||||
(* entries for services like 80_httpd.rc *)
|
||||
let service_colon = del /[ \t]*:[ \t]*/ " : "
|
||||
let service_on = [ key "service_on" . [ seq "service_on" . equals .
|
||||
[ label "protocol" . store neg3 ] . service_colon .
|
||||
[ label "kitename" . (store neg3) ] . service_colon .
|
||||
[ label "backend_host" . (store neg3) ] . service_colon .
|
||||
[ label "backend_port" . (store neg3) ] . service_colon . (
|
||||
[ label "secret" . (store Rx.no_spaces) . Util.eol ] | eol
|
||||
) ] ]
|
||||
|
||||
let service_cfg = [ key "service_cfg" . equals . store to_eol . eol ]
|
||||
|
||||
let flags = ( "defaults" | "isfrontend" | "abort_not_configured" | "insecure" )
|
||||
|
||||
let entries = Build.flag_line flags
|
||||
| domain
|
||||
| frontend
|
||||
| host
|
||||
| ports
|
||||
| protos
|
||||
| kv_frontend
|
||||
| kitesecret
|
||||
| service_on
|
||||
| service_cfg
|
||||
|
||||
let lns = ( entries | Util.empty | Util.comment )*
|
||||
|
||||
(* View: filter *)
|
||||
let filter = incl "/etc/pagekite.d/*.rc"
|
||||
. Util.stdexcl
|
||||
|
||||
let xfm = transform lns filter
|
||||
@@ -1,111 +0,0 @@
|
||||
module Test_Pagekite =
|
||||
|
||||
let conf1 = "# Use the pagekite.net service defaults.
|
||||
defaults
|
||||
"
|
||||
test Pagekite.lns get conf1 =
|
||||
{ "#comment" = "Use the pagekite.net service defaults." }
|
||||
{ "defaults" }
|
||||
|
||||
|
||||
let conf2 ="
|
||||
frontends = pagekite.freedombox.me
|
||||
ports=80,81
|
||||
"
|
||||
test Pagekite.lns get conf2 =
|
||||
{ }
|
||||
{ "frontends" = "pagekite.freedombox.me" }
|
||||
{ "ports"
|
||||
{ "1" = "80" }
|
||||
{ "2" = "81" } }
|
||||
|
||||
|
||||
let conf3 = "frontend=pagekite.freedombox.me
|
||||
host=192.168.0.3
|
||||
"
|
||||
test Pagekite.lns get conf3 =
|
||||
{ "frontend" = "pagekite.freedombox.me" }
|
||||
{ "host" = "192.168.0.3" }
|
||||
|
||||
|
||||
let conf4 = "isfrontend
|
||||
ports=80,443
|
||||
protos=http,https
|
||||
domain=http,https:*.your.domain:MakeUpAPasswordHere
|
||||
"
|
||||
test Pagekite.lns get conf4 =
|
||||
{ "isfrontend" }
|
||||
{ "ports"
|
||||
{ "1" = "80" }
|
||||
{ "2" = "443" } }
|
||||
{ "protos"
|
||||
{ "1" = "http" }
|
||||
{ "2" = "https" } }
|
||||
{ "domain" = "http,https:*.your.domain:MakeUpAPasswordHere" }
|
||||
|
||||
let conf_account = "kitename = my.freedombox.me
|
||||
kitesecret = 0420
|
||||
# Delete this line!
|
||||
abort_not_configured
|
||||
"
|
||||
test Pagekite.lns get conf_account =
|
||||
{ "kitename" = "my.freedombox.me" }
|
||||
{ "kitesecret" = "0420" }
|
||||
{ "#comment" = "Delete this line!" }
|
||||
{ "abort_not_configured" }
|
||||
|
||||
|
||||
let conf_service = "
|
||||
service_on = raw/22:@kitename : localhost:22 : @kitesecret
|
||||
service_on=http:192.168.0.1:127.0.0.1:80:
|
||||
service_on=https:yourhostname,fqdn:127.0.0.1:443:
|
||||
"
|
||||
test Pagekite.lns get conf_service =
|
||||
{ }
|
||||
{ "service_on"
|
||||
{ "1"
|
||||
{ "protocol" = "raw/22" }
|
||||
{ "kitename" = "@kitename" }
|
||||
{ "backend_host" = "localhost" }
|
||||
{ "backend_port" = "22" }
|
||||
{ "secret" = "@kitesecret" }
|
||||
}
|
||||
}
|
||||
{ "service_on"
|
||||
{ "2"
|
||||
{ "protocol" = "http" }
|
||||
{ "kitename" = "192.168.0.1" }
|
||||
{ "backend_host" = "127.0.0.1" }
|
||||
{ "backend_port" = "80" }
|
||||
}
|
||||
}
|
||||
{ "service_on"
|
||||
{ "3"
|
||||
{ "protocol" = "https" }
|
||||
{ "kitename" = "yourhostname,fqdn" }
|
||||
{ "backend_host" = "127.0.0.1" }
|
||||
{ "backend_port" = "443" }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let conf_encryption = "
|
||||
frontend=frontend.your.domain:443
|
||||
fe_certname=frontend.your/domain
|
||||
ca_certs=/etc/pagekite.d/site-cert.pem
|
||||
tls_endpoint=frontend.your.domain:/path/to/frontend.pem
|
||||
"
|
||||
test Pagekite.lns get conf_encryption =
|
||||
{ }
|
||||
{ "frontend" = "frontend.your.domain:443" }
|
||||
{ "fe_certname" = "frontend.your/domain" }
|
||||
{ "ca_certs" = "/etc/pagekite.d/site-cert.pem" }
|
||||
{ "tls_endpoint" = "frontend.your.domain:/path/to/frontend.pem" }
|
||||
|
||||
|
||||
let conf_service_cfg = "insecure
|
||||
service_cfg = KITENAME.pagekite.me/80 : insecure : True
|
||||
"
|
||||
test Pagekite.lns get conf_service_cfg =
|
||||
{ "insecure" }
|
||||
{ "service_cfg" = "KITENAME.pagekite.me/80 : insecure : True" }
|
||||
@@ -1,12 +0,0 @@
|
||||
module Test_Tor =
|
||||
|
||||
test Tor.lns get "\n" = { }
|
||||
test Tor.lns get "# comment\n" = { "#comment" = "comment" }
|
||||
test Tor.lns get "SocksPort 9050\n" = { "SocksPort" = "9050" }
|
||||
test Tor.lns get "SocksPort 0.0.0.0:9050\n" = { "SocksPort" = "0.0.0.0:9050" }
|
||||
test Tor.lns get "SocksPort [::]:9050\n" = { "SocksPort" = "[::]:9050" }
|
||||
test Tor.lns get "ExitPolicy reject *:*\n" = { "ExitPolicy" = "reject *:*" }
|
||||
test Tor.lns get "VirtualAddrNetworkIPv4 10.192.0.0/10\n" = { "VirtualAddrNetworkIPv4" = "10.192.0.0/10" }
|
||||
test Tor.lns get "ServerTransportPlugin obfs3,obfs4 exec /usr/bin/obfs4proxy\n" = { "ServerTransportPlugin" = "obfs3,obfs4 exec /usr/bin/obfs4proxy" }
|
||||
test Tor.lns get "HiddenServiceDir /var/lib/tor-instances/plinth/hidden_service/\n" = { "HiddenServiceDir" = "/var/lib/tor-instances/plinth/hidden_service/" }
|
||||
test Tor.lns get "Bridge obfs4 10.1.1.1:30000 0123456789ABCDEF0123456789ABCDEF01234567 cert=A/b+1 iat-mode=0\n" = { "Bridge" = "obfs4 10.1.1.1:30000 0123456789ABCDEF0123456789ABCDEF01234567 cert=A/b+1 iat-mode=0" }
|
||||
@@ -1,40 +0,0 @@
|
||||
(* Tor lens for Augeas
|
||||
|
||||
Author: James Valleroy <jvalleroy@mailbox.org>
|
||||
|
||||
About: Reference
|
||||
Online Tor configuration manual:
|
||||
https://www.torproject.org/docs/tor-manual.html.en
|
||||
|
||||
About: License
|
||||
This file is licensed under the LGPL v2+.
|
||||
|
||||
About: Configuration files
|
||||
This lens applies to /etc/tor/torrc. See <filter>.
|
||||
|
||||
*)
|
||||
|
||||
|
||||
module Tor =
|
||||
|
||||
autoload xfm
|
||||
|
||||
let eol = Util.eol
|
||||
|
||||
let ws = /[ \t]/
|
||||
let k = /[A-Za-z0-9_.,:*]+/
|
||||
let val = /[A-Za-z0-9_.,:*+-=\/]+/
|
||||
|
||||
let bracket_val = "[" . val* . "]" . val*
|
||||
let multi_val = val . (" " . val)+
|
||||
|
||||
let simple_entry = [ key k . del ws+ " " . store val . eol ]
|
||||
let bracket_entry = [ key k . del ws+ " " . store bracket_val . eol ]
|
||||
let multi_entry = [ key k . del ws+ " " . store multi_val . eol ]
|
||||
|
||||
let entry = simple_entry|bracket_entry|multi_entry
|
||||
let lns = (entry|Util.comment|Util.empty_dos)*
|
||||
|
||||
let filter = (incl "/etc/tor/torrc")
|
||||
|
||||
let xfm = transform lns filter
|
||||
@@ -1,6 +0,0 @@
|
||||
Name: Restrict login using access control table file
|
||||
Default: yes
|
||||
Priority: 0
|
||||
Account-Type: Additional
|
||||
Account-Final:
|
||||
required pam_access.so
|
||||
@@ -1,6 +0,0 @@
|
||||
Name: Create home directory during login
|
||||
Default: yes
|
||||
Priority: 900
|
||||
Session-Type: Additional
|
||||
Session:
|
||||
required pam_mkhomedir.so umask=0022 skel=/etc/skel
|
||||
@@ -1,25 +0,0 @@
|
||||
/*
|
||||
#
|
||||
# This file is part of FreedomBox.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
*/
|
||||
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 &&
|
||||
subject.user == "plinth") {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user