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
@@ -0,0 +1,21 @@
|
||||
##
|
||||
## On all sites, provide mldonkey web interface on a path: /mldonkey
|
||||
##
|
||||
|
||||
# Redirect /mldonkey to /mldonkey/ as the MLdonkey server web interface does not
|
||||
# work without a slash at the end.
|
||||
<Location ~ ^/mldonkey$>
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_URI} ^/mldonkey$
|
||||
RewriteRule .* /mldonkey/ [R=301,L]
|
||||
</IfModule>
|
||||
</Location>
|
||||
|
||||
<Location /mldonkey/>
|
||||
Include includes/freedombox-single-sign-on.conf
|
||||
ProxyPass http://localhost:4080/
|
||||
<IfModule mod_auth_pubtkt.c>
|
||||
TKTAuthToken "admin" "ed2k"
|
||||
</IfModule>
|
||||
</Location>
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
[Unit]
|
||||
Description=MLDonkey: Multi-protocol, peer-to-peer file sharing server
|
||||
After=syslog.target network.target
|
||||
ConditionPathExists=/var/lib/mldonkey/downloads.ini
|
||||
Documentation=man:mlnet(1) http://mldonkey.sourceforge.net/Main_Page
|
||||
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/usr/bin/mlnet
|
||||
ExecStop=
|
||||
Group=mldonkey
|
||||
IgnoreSIGPIPE=yes
|
||||
KillMode=control-group
|
||||
LockPersonality=yes
|
||||
NoNewPrivileges=yes
|
||||
PrivateDevices=yes
|
||||
PrivateMounts=yes
|
||||
PrivateTmp=yes
|
||||
PrivateUsers=yes
|
||||
ProtectControlGroups=yes
|
||||
ProtectHome=yes
|
||||
ProtectKernelModules=yes
|
||||
ProtectKernelTunables=yes
|
||||
ProtectSystem=strict
|
||||
ReadWritePaths=/var/lib/mldonkey
|
||||
RemainAfterExit=no
|
||||
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
||||
RestrictRealtime=yes
|
||||
StateDirectory=mldonkey
|
||||
SystemCallArchitectures=native
|
||||
Type=simple
|
||||
User=mldonkey
|
||||
WorkingDirectory=/var/lib/mldonkey
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in new issue
Block a user