mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
plinth/*: Rename plinth/ folder to freedombox/
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
dd0161a7e5
commit
23b6aff290
1264 files changed
No files matched your search
+8
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Nextcloud cron.php job
|
||||
Documentation=https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/background_jobs_configuration.html#systemd
|
||||
|
||||
[Service]
|
||||
ExecCondition=/usr/bin/podman exec --user www-data nextcloud-freedombox /var/www/html/occ status -e
|
||||
ExecStart=/usr/bin/podman exec --user www-data nextcloud-freedombox php -f /var/www/html/cron.php
|
||||
KillMode=process
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Run Nextcloud cron.php every 5 minutes
|
||||
Documentation=https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/background_jobs_configuration.html#systemd
|
||||
|
||||
[Timer]
|
||||
OnBootSec=5min
|
||||
OnUnitActiveSec=5min
|
||||
Unit=nextcloud-cron-freedombox.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
##
|
||||
## On all sites, provide Nextcloud on a default path: /nextcloud
|
||||
##
|
||||
## Requires the following Apache modules to be enabled:
|
||||
## mod_headers
|
||||
## mod_proxy
|
||||
## mod_proxy_http
|
||||
##
|
||||
|
||||
# Redirect .well-known URLs on the server to Nextcloud to enable auto-discovery
|
||||
# of calendars, contacts, etc. without having to provide full server URLs. If
|
||||
# another app providing similar functionality is enabled, only one of them will
|
||||
# work based on the sort order of Apache configuration files.
|
||||
Redirect 301 /.well-known/carddav /nextcloud/remote.php/dav
|
||||
Redirect 301 /.well-known/caldav /nextcloud/remote.php/dav
|
||||
Redirect 301 /.well-known/webfinger /nextcloud/index.php/.well-known/webfinger
|
||||
Redirect 301 /.well-known/nodeinfo /nextcloud/index.php/.well-known/nodeinfo
|
||||
|
||||
Alias /nextcloud/ /var/lib/nextcloud/
|
||||
|
||||
# Redirect /nextcloud to /nextcloud/.
|
||||
<Location ~ ^/nextcloud$>
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_URI} ^/nextcloud$
|
||||
RewriteRule .* /nextcloud/ [R=301,L]
|
||||
</IfModule>
|
||||
</Location>
|
||||
|
||||
<IfModule proxy_fcgi_module>
|
||||
ProxyPassMatch "^/nextcloud/(.*\.php(/.*)?)$" "fcgi://localhost:9000/var/www/html/$1"
|
||||
</IfModule>
|
||||
|
||||
<Directory /var/lib/nextcloud/>
|
||||
<IfModule !mod_php7.c>
|
||||
<IfModule proxy_fcgi_module>
|
||||
# Enable http authorization headers
|
||||
<IfModule setenvif_module>
|
||||
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
|
||||
</IfModule>
|
||||
|
||||
<FilesMatch ".+\.phps$">
|
||||
# Deny access to raw php sources by default
|
||||
# To re-enable it's recommended to enable access to the files
|
||||
# only in specific virtual host or directory
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
# Deny access to files without filename (e.g. '.php')
|
||||
<FilesMatch "^\.ph(ar|p|ps|tml)$">
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
|
||||
Require all granted
|
||||
|
||||
# Allow a limited set of directives in .htaccess files found in /, /config,
|
||||
# and /data directories of nextcloud.
|
||||
AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,MultiViews
|
||||
</Directory>
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
# Listen on Unix socket for incoming connections in addition to listening on a
|
||||
# TCP address/port.
|
||||
unixsocket /run/redis/redis-server.sock
|
||||
# Allow all users to connect to redis server using this socket
|
||||
unixsocketperm 777
|
||||
@@ -0,0 +1 @@
|
||||
plinth.modules.nextcloud
|
||||
Reference in new issue
Block a user