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
@@ -0,0 +1,38 @@
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
[Unit]
|
||||
Description=WordPress Scheduled Events Trigger (Cron)
|
||||
Documentation=https://rtcamp.com/tutorials/wordpress/wp-cron-crontab/
|
||||
ConditionPathExists=/etc/wordpress/config-default.php
|
||||
|
||||
[Service]
|
||||
CapabilityBoundingSet=~CAP_SYS_ADMIN CAP_SYS_PTRACE CAP_SETUID CAP_SETGID CAP_SETPCAP CAP_CHOWN CAP_FSETID CAP_SETFCAP CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH CAP_FOWNER CAP_IPC_OWNER CAP_NET_ADMIN CAP_AUDIT_CONTROL CAP_AUDIT_READ CAP_AUDIT_WRITE CAP_KILL CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_LINUX_IMMUTABLE CAP_IPC_LOCK CAP_SYS_CHROOT CAP_BLOCK_SUSPEND CAP_LEASE CAP_SYS_PACCT CAP_SYS_TTY_CONFIG CAP_SYS_BOOT CAP_MAC_ADMIN CAP_MAC_OVERRIDE CAP_SYS_NICE CAP_SYS_RESOURCE
|
||||
DevicePolicy=closed
|
||||
ExecStart=/usr/bin/php --file /usr/share/wordpress/wp-cron.php
|
||||
Group=www-data
|
||||
LockPersonality=yes
|
||||
NoNewPrivileges=yes
|
||||
PrivateDevices=yes
|
||||
PrivateMounts=yes
|
||||
PrivateTmp=yes
|
||||
PrivateUsers=yes
|
||||
ProtectControlGroups=yes
|
||||
ProtectClock=yes
|
||||
ProtectHome=yes
|
||||
ProtectHostname=yes
|
||||
ProtectKernelLogs=yes
|
||||
ProtectKernelModules=yes
|
||||
ProtectKernelTunables=yes
|
||||
ProtectSystem=strict
|
||||
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
|
||||
RestrictNamespaces=yes
|
||||
RestrictRealtime=yes
|
||||
RestrictSUIDSGID=yes
|
||||
StateDirectory=wordpress/wp-content
|
||||
SystemCallArchitectures=native
|
||||
SystemCallFilter=@system-service
|
||||
SystemCallFilter=~@resources
|
||||
SystemCallFilter=~@privileged
|
||||
SystemCallErrorNumber=EPERM
|
||||
Type=simple
|
||||
User=www-data
|
||||
@@ -0,0 +1,11 @@
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
[Unit]
|
||||
Description=WordPress Scheduled Events Trigger (Cron) Timer
|
||||
Documentation=https://rtcamp.com/tutorials/wordpress/wp-cron-crontab/
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*:0/10
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
##
|
||||
## On all sites, provide WordPress on a default path: /wordpress
|
||||
##
|
||||
## Requires the following Apache modules to be enabled:
|
||||
## mod_alias
|
||||
## mod_rewrite
|
||||
## mod_proxy_fcgi
|
||||
## mod_auth_pubtkt
|
||||
##
|
||||
|
||||
# Redirect Webfinger queries, needed by ActivityPub plugin
|
||||
RedirectMatch "^\/\.well-known\/webfinger(.*)$" "\/wordpress\/\.well-known\/webfinger$1"
|
||||
|
||||
# Match longer aliases first to meet expectations
|
||||
Alias /wordpress/wp-content /var/lib/wordpress/wp-content
|
||||
Alias /wordpress /usr/share/wordpress
|
||||
|
||||
<Directory /usr/share/wordpress>
|
||||
Options FollowSymLinks
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||
RewriteBase /wordpress/
|
||||
RewriteRule ^index\.php$ - [L]
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule . /wordpress/index.php [L]
|
||||
</IfModule>
|
||||
|
||||
# Allow access only if site is marked as public or if user is an admin
|
||||
<IfFile !/etc/wordpress/is_public>
|
||||
Use AuthOpenIDConnect
|
||||
</IfFile>
|
||||
|
||||
# Increase maximum upload file size
|
||||
<IfModule proxy_fcgi_module>
|
||||
ProxyFCGISetEnvIf true PHP_VALUE "post_max_size=128M \n upload_max_filesize = 128M"
|
||||
</IfModule>
|
||||
</Directory>
|
||||
|
||||
<Directory /var/lib/wordpress/wp-content>
|
||||
Options FollowSymLinks
|
||||
|
||||
# Allow access only if site is marked as public or if user is an admin
|
||||
<IfFile !/etc/wordpress/is_public>
|
||||
Use AuthOpenIDConnect
|
||||
</IfFile>
|
||||
|
||||
<IfFile /etc/wordpress/is_public>
|
||||
Require all granted
|
||||
</IfFile>
|
||||
</Directory>
|
||||
|
||||
# Harden security by following wpscan's suggestions. Issue #2244
|
||||
<LocationMatch "^/wordpress/(readme.html|xmlrpc.php|wp-cron.php)">
|
||||
Deny from All
|
||||
</LocationMatch>
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
[INCLUDES]
|
||||
before = common.conf
|
||||
|
||||
[Definition]
|
||||
_daemon = apache-access
|
||||
prefregex = %(__prefix_line)s
|
||||
failregex = \S+ <HOST> - \S+ \[[^\]]*\] "POST /wordpress/wp-login.php HTTP/\S+" 200
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
[wordpress-freedombox]
|
||||
enabled = true
|
||||
filter = wordpress-freedombox
|
||||
journalmatch = SYSLOG_IDENTIFIER=apache-access
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
# Do not edit this file. Manage your settings on FreedomBox.
|
||||
|
||||
define('FS_METHOD','direct');
|
||||
@@ -0,0 +1 @@
|
||||
plinth.modules.wordpress
|
||||
Reference in new issue
Block a user