Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v7.0 #4126

Merged
merged 233 commits into from
Feb 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
233 commits
Select commit Hold shift + click to select a range
4ed13df
v6.35 (#3987)
MichaIng Dec 20, 2020
7b2d0d5
v6.35 (#3988)
MichaIng Dec 20, 2020
f9ce83d
v6.35
MichaIng Dec 20, 2020
6fd7669
v6.35
MichaIng Dec 20, 2020
9e8a628
v6.35
MichaIng Dec 21, 2020
9baa1af
v6.35
MichaIng Dec 21, 2020
fca150d
v6.35
MichaIng Dec 21, 2020
cbc4b49
v6.35
MichaIng Dec 21, 2020
55a89c8
v6.35
MichaIng Dec 21, 2020
1a10c45
v6.35
MichaIng Dec 21, 2020
dc335bd
v6.35
MichaIng Dec 22, 2020
3120ed5
v6.35 (#3995)
ravenclaw900 Dec 23, 2020
1205263
v6.35
MichaIng Dec 23, 2020
8a5d093
v6.34
MichaIng Dec 25, 2020
4973b52
v6.35
MichaIng Dec 25, 2020
8eb0973
v6.35
MichaIng Dec 25, 2020
c2a6996
v6.35
MichaIng Dec 25, 2020
1186278
v6.35 (#4006)
Joulinar Dec 26, 2020
f0eae8f
v6.35
MichaIng Dec 26, 2020
9471b91
v6.35
MichaIng Dec 27, 2020
9d34c2f
v6.35
MichaIng Dec 27, 2020
ff0786b
v6.35
MichaIng Dec 27, 2020
fa615c5
v6.35
MichaIng Dec 27, 2020
ad339d9
v6.35
MichaIng Dec 27, 2020
9853df9
v6.35
MichaIng Dec 27, 2020
b15c110
v6.35
MichaIng Dec 29, 2020
4d9cf8f
v6.35
MichaIng Dec 29, 2020
a23d799
v6.35
MichaIng Dec 29, 2020
d0d49f3
v6.35
MichaIng Dec 29, 2020
d6d8900
v6.35
MichaIng Jan 1, 2021
044f550
Update unbound branch to current dev (#4029)
MichaIng Jan 1, 2021
44d2429
v6.35
MichaIng Jan 1, 2021
771f363
v6.35
MichaIng Jan 1, 2021
6ce87bd
v6.35
MichaIng Jan 3, 2021
2dca026
v6.35
MichaIng Jan 4, 2021
86efdd9
v6.35
MichaIng Jan 4, 2021
979e7c3
v6.35
MichaIng Jan 4, 2021
d1f131e
v6.35
MichaIng Jan 4, 2021
4470604
v6.35
MichaIng Jan 4, 2021
5c30646
v6.35 (#4022)
MichaIng Jan 6, 2021
4e6c901
v6.35 (#4042)
StephanStS Jan 6, 2021
c533958
v6.35
MichaIng Jan 7, 2021
9a74183
v6.35
MichaIng Jan 8, 2021
9c7dc8b
v6.35
MichaIng Jan 11, 2021
35c56eb
v6.35
MichaIng Jan 11, 2021
0f0ae40
Update CHANGELOG.txt
MichaIng Jan 11, 2021
7eaafb9
v6.35
MichaIng Jan 13, 2021
3e18cd5
v6.35
MichaIng Jan 13, 2021
7c9d91f
v6.35
MichaIng Jan 13, 2021
90911f7
v6.35
MichaIng Jan 13, 2021
57326c7
v6.35
MichaIng Jan 14, 2021
364c322
v6.35
MichaIng Jan 14, 2021
5f77949
v6.35
MichaIng Jan 14, 2021
5689cbb
v6.35
MichaIng Jan 14, 2021
c24ffe8
Align survey page style with main website
MichaIng Jan 18, 2021
46223b6
v6.35
MichaIng Jan 18, 2021
bbff262
v6.35
MichaIng Jan 18, 2021
c3a28db
v6.35
MichaIng Jan 18, 2021
884c2c0
v6.35
MichaIng Jan 19, 2021
aaa6a5f
v6.35
MichaIng Jan 19, 2021
4bcfd52
v6.35
MichaIng Jan 21, 2021
38174e7
v6.35
MichaIng Jan 21, 2021
ad559c3
v6.35
MichaIng Jan 22, 2021
52c348e
v6.35
MichaIng Jan 22, 2021
e82ec72
v6.35
MichaIng Jan 22, 2021
317c35d
v6.35
MichaIng Jan 22, 2021
45ac1d9
v6.35
MichaIng Jan 22, 2021
94ebce5
v6.35 (#4020)
Joulinar Jan 25, 2021
13a0edf
v6.35
MichaIng Jan 25, 2021
3b201d9
v6.35
MichaIng Jan 25, 2021
4747aaa
v6.35
MichaIng Jan 26, 2021
f37c952
v6.35
MichaIng Jan 26, 2021
027855b
v6.35
MichaIng Jan 26, 2021
4269c51
v6.35
MichaIng Jan 28, 2021
20d0e6a
v6.35
MichaIng Jan 28, 2021
600d5b9
v6.35
MichaIng Jan 28, 2021
ad071d4
v6.35 (#4073)
MichaIng Jan 29, 2021
6e76c3c
v6.35
MichaIng Jan 31, 2021
556756d
v6.35
MichaIng Jan 31, 2021
7ecb3a9
v6.35 (#4039)
Joulinar Feb 2, 2021
6ea4df1
v6.35
Joulinar Feb 2, 2021
f2e39cf
v6.35
MichaIng Feb 2, 2021
478cbe2
v6.35 (#3989)
ravenclaw900 Feb 2, 2021
664fe3f
v6.35 (#4015)
C0D3-M4513R Feb 3, 2021
15ea56c
v6.35
MichaIng Feb 3, 2021
105f42b
v6.35
MichaIng Feb 4, 2021
0aa2c57
v6.35
MichaIng Feb 4, 2021
2f864e4
v6.35
MichaIng Feb 4, 2021
9eea145
v6.35 (#4084)
MichaIng Feb 4, 2021
30cd96c
v6.35 (#4086)
MichaIng Feb 6, 2021
43e5880
Comment changed from dietpi.com/phpBB to dietpi.com/docs
StephanStS Feb 6, 2021
199bd10
Update dietpi.txt
StephanStS Feb 6, 2021
282a4fb
Update dietpi-survey
StephanStS Feb 6, 2021
b6c29ca
Merge pull request #4090 from MichaIng/StephanStS-patch-1
StephanStS Feb 6, 2021
60b4d34
v6.35
MichaIng Feb 7, 2021
5ed3ba4
v6.35 (#4091)
MichaIng Feb 7, 2021
690b01b
v6.35
MichaIng Feb 7, 2021
98b5be8
v6.35
MichaIng Feb 7, 2021
aad1085
v6.35
MichaIng Feb 7, 2021
788d7ec
v6.35 (#4094)
ravenclaw900 Feb 8, 2021
a279d2e
v6.35
MichaIng Feb 8, 2021
13fe64b
v6.35
MichaIng Feb 8, 2021
bc5bde6
v6.35 (#4096)
Joulinar Feb 8, 2021
c887150
v6.35
MichaIng Feb 8, 2021
6a2634e
DietPi-Software | Several enhancements (#4095)
MichaIng Feb 9, 2021
adee418
v6.35
MichaIng Feb 9, 2021
02b04ef
v6.35
MichaIng Feb 10, 2021
1c6959b
v6.35
MichaIng Feb 10, 2021
b48a0f2
v6.35
MichaIng Feb 10, 2021
0fec0a8
v6.35
MichaIng Feb 10, 2021
8e766d3
v6.35 (#4100)
MichaIng Feb 10, 2021
a5a6b58
v6.35
MichaIng Feb 11, 2021
677680c
v6.35
MichaIng Feb 11, 2021
9d0b10b
v6.35
MichaIng Feb 11, 2021
df88949
v6.35
MichaIng Feb 12, 2021
b5a9e38
v6.35
MichaIng Feb 12, 2021
d6ac615
v6.35
MichaIng Feb 12, 2021
498c157
v6.35
MichaIng Feb 12, 2021
14c448d
v6.35
MichaIng Feb 12, 2021
3f95ac3
v6.35 (#4106)
MichaIng Feb 13, 2021
ce87415
v6.35
MichaIng Feb 13, 2021
2fb9550
v6.35 (#4107)
MichaIng Feb 13, 2021
e2d4c6d
v6.35
MichaIng Feb 13, 2021
81d401b
v6.35
MichaIng Feb 13, 2021
e2a928f
v6.35
MichaIng Feb 13, 2021
5fc024d
v6.35
MichaIng Feb 13, 2021
90426ab
v6.35
MichaIng Feb 13, 2021
660c3e3
v6.35
MichaIng Feb 13, 2021
5182674
v6.35
MichaIng Feb 14, 2021
618a6bc
v6.35
MichaIng Feb 14, 2021
47f62d9
v6.35
MichaIng Feb 14, 2021
bdae703
v6.35
MichaIng Feb 14, 2021
50a7aed
v6.35
MichaIng Feb 14, 2021
4b57879
v6.35
MichaIng Feb 14, 2021
195f29d
v6.35
MichaIng Feb 14, 2021
9d7080f
v6.35
MichaIng Feb 14, 2021
a4e944b
v6.35
MichaIng Feb 14, 2021
ffd9ab1
v6.35
MichaIng Feb 14, 2021
6a64391
v6.35
MichaIng Feb 14, 2021
4b64abb
v6.35
MichaIng Feb 14, 2021
fbe68c8
v7.0
MichaIng Feb 14, 2021
2a52bb8
v7.0
MichaIng Feb 14, 2021
2dc001b
v7.0 (#4103)
MichaIng Feb 14, 2021
4171e1d
v7.0
MichaIng Feb 15, 2021
c0de045
v7.0
MichaIng Feb 15, 2021
4d78404
v7.0
MichaIng Feb 15, 2021
cd4b024
v7.0
MichaIng Feb 15, 2021
64aa8f8
v7.0
MichaIng Feb 15, 2021
e8e2351
v7.0
MichaIng Feb 15, 2021
d75f910
v7.0
MichaIng Feb 15, 2021
dffd642
v7.0
MichaIng Feb 16, 2021
c267035
v7.0
MichaIng Feb 17, 2021
0b3661a
v7.0
MichaIng Feb 17, 2021
17cd7bc
v7.0
MichaIng Feb 17, 2021
eac6d1f
v7.0
MichaIng Feb 17, 2021
cd9b517
v7.0
MichaIng Feb 17, 2021
735b0d2
v7.0
MichaIng Feb 18, 2021
2e39c83
v7.0
MichaIng Feb 18, 2021
8f7bed2
v7.0
MichaIng Feb 18, 2021
1684a77
v7.0
MichaIng Feb 18, 2021
134cc50
v7.0
MichaIng Feb 18, 2021
8af52b7
v7.0
MichaIng Feb 18, 2021
d266d80
Beta v7.0.0 (#4110)
MichaIng Feb 18, 2021
9003d69
v7.0
MichaIng Feb 18, 2021
ab4b735
v7.0
MichaIng Feb 18, 2021
e4d18c1
v7.0
MichaIng Feb 18, 2021
9f48817
v7.0 (#4122)
StephanStS Feb 18, 2021
bb226bc
v7.0
MichaIng Feb 19, 2021
a47f9ce
v7.0
MichaIng Feb 19, 2021
301b16b
v7.0
MichaIng Feb 19, 2021
e3eb44e
v7.0
MichaIng Feb 19, 2021
6880316
v7.0
MichaIng Feb 19, 2021
32c9d47
v7.0
MichaIng Feb 19, 2021
b092b1b
v7.0
MichaIng Feb 19, 2021
e558f1d
v7.0
MichaIng Feb 19, 2021
243135f
v7.0
MichaIng Feb 19, 2021
a7adf56
v7.0
MichaIng Feb 19, 2021
c887f60
v7.0
MichaIng Feb 19, 2021
29f03eb
Link changed from phpBB to dietpi.com/docs #3
StephanStS Feb 19, 2021
afee1fa
Update dietpi-drive_manager
StephanStS Feb 19, 2021
6db5469
Links in dietpi-software
StephanStS Feb 19, 2021
401e053
Links in dietpi-survey
StephanStS Feb 19, 2021
5e49cc7
Links in dietpi-sync
StephanStS Feb 19, 2021
ede38b3
Links in dietpi-backup
StephanStS Feb 19, 2021
f020393
Links in dietpi-globals
StephanStS Feb 19, 2021
ba47e4b
Merge branch 'dev' into StephanStS-patch-1
MichaIng Feb 19, 2021
75c00f1
v7.0
MichaIng Feb 19, 2021
1b0e135
Merge pull request #4128 from MichaIng/StephanStS-patch-1
StephanStS Feb 19, 2021
07dc022
v7.0
MichaIng Feb 20, 2021
27f3011
v7.0
MichaIng Feb 20, 2021
eb956a1
v7.0
MichaIng Feb 20, 2021
b433370
v7.0
MichaIng Feb 20, 2021
a1ecafb
v7.0
MichaIng Feb 21, 2021
6a62624
v7.0
MichaIng Feb 21, 2021
27496dc
DietPi-Software | Node-RED: Switch to a local service user install (#…
MichaIng Feb 21, 2021
960815a
v7.0
MichaIng Feb 21, 2021
2df355c
v7.0
MichaIng Feb 21, 2021
4599386
v7.0
MichaIng Feb 21, 2021
56b5f85
Beta v7.0.0 (#4132)
MichaIng Feb 21, 2021
f03cc80
v7.0
MichaIng Feb 23, 2021
7937961
v7.0
MichaIng Feb 23, 2021
7029f4a
v7.0
MichaIng Feb 23, 2021
2ec22fb
v7.0
MichaIng Feb 23, 2021
c0689f1
v7.0 (#4138)
MichaIng Feb 23, 2021
b2c1cbf
v7.0
MichaIng Feb 24, 2021
bb7f6c6
v7.0
MichaIng Feb 24, 2021
edd549d
v7.0
MichaIng Feb 24, 2021
805938d
v7.0
MichaIng Feb 24, 2021
32b386f
v7.0
MichaIng Feb 25, 2021
9e19c24
v7.0
MichaIng Feb 26, 2021
7dcb8ca
v7.0
MichaIng Feb 26, 2021
710f81a
v7.0
MichaIng Feb 26, 2021
206d169
v7.0
MichaIng Feb 26, 2021
568d7c2
Choice of automatic login user appears too often
StephanStS Feb 26, 2021
6a77a0f
v7.0
MichaIng Feb 27, 2021
413717c
v7.0
MichaIng Feb 27, 2021
e483f52
Merge branch 'StephanStS-patch-1' into dev
MichaIng Feb 27, 2021
236ae0b
v7.0
MichaIng Feb 27, 2021
7d4181c
v7.0 (#4112)
ravenclaw900 Feb 27, 2021
9737198
v7.0
MichaIng Feb 27, 2021
cc092bb
v7.0
MichaIng Feb 27, 2021
fecc6e6
v7.0
MichaIng Feb 27, 2021
9b49a40
v7.0
MichaIng Feb 27, 2021
fd32c8a
v7.0
MichaIng Feb 27, 2021
2e47755
v7.0
MichaIng Feb 27, 2021
e06c2a1
Beta v7.0.1 (#4146)
MichaIng Feb 27, 2021
959b704
v7.0
Joulinar Feb 27, 2021
b2959fa
v7.0
MichaIng Feb 27, 2021
e835400
v7.0
MichaIng Feb 28, 2021
aaa11b8
v7.0
MichaIng Feb 28, 2021
736616c
v7.0
MichaIng Feb 28, 2021
0fe2bf5
v7.0
MichaIng Feb 28, 2021
ba4fbb4
Beta v7.0.2 (#4152)
MichaIng Feb 28, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .conf/desktop/gtk/.gtk-bookmarks
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
file:/// /
file:///root /root
file:///root Home
file:///mnt/dietpi_userdata DietPi User Data
file:///mnt/samba Samba Client
file:///mnt/nfs_client NFS Client
41 changes: 20 additions & 21 deletions .conf/desktop/lxde/panel
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@

Global {
edge=bottom
allign=left
margin=0
widthtype=percent
width=100
height=36
transparent=0
tintcolor=#434343
alpha=255
autohide=0
heightwhenhidden=2
setdocktype=1
setpartialstrut=1
usefontcolor=1
fontsize=10
fontcolor=#ffffff
usefontsize=0
background=1
backgroundfile=/var/lib/dietpi/dietpi-software/installed/desktop/icons/grey_16x16.png
iconsize=34
edge=bottom
allign=left
margin=0
widthtype=percent
width=100
height=36
transparent=1
tintcolor=#313131
alpha=255
autohide=0
heightwhenhidden=2
setdocktype=1
setpartialstrut=1
usefontcolor=1
fontsize=10
fontcolor=#ffffff
usefontsize=0
background=0
iconsize=34
}
Plugin {
type=space
Expand Down Expand Up @@ -109,7 +108,7 @@ Plugin {
FlatButton=0
MaxTaskWidth=150
spacing=2
UseSmallerIcons=-1
UseSmallerIcons=-1
}
}
Plugin {
Expand Down
Binary file modified .conf/desktop/lxqt/lxqt-buster.7z
Binary file not shown.
10 changes: 5 additions & 5 deletions .conf/dps_114/apache.nextcloud.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Location: /etc/apache2/sites-available/dietpi-nextcloud.conf
# Based on: https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#apache-web-server-configuration
# Based on: https://github.com/nextcloud/documentation/blob/master/admin_manual/installation/source_installation.rst#apache-web-server-configuration

# Redirect OCM/OCS provider requests to Nextcloud endpoint
Redirect permanent /ocm-provider /nextcloud/ocm-provider
Redirect permanent /ocs-provider /nextcloud/ocs-provider
# Redirect webfinger and nodeinfo requests to Nextcloud endpoint
Redirect permanent /.well-known/webfinger /nextcloud/index.php/.well-known/webfinger
Redirect permanent /.well-known/nodeinfo /nextcloud/index.php/.well-known/nodeinfo

<Directory /var/www/nextcloud/>
<Directory /var/www/nextcloud>
Require all granted
AllowOverride All
Options FollowSymLinks
Expand Down
12 changes: 6 additions & 6 deletions .conf/dps_114/lighttpd.nextcloud.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Derived from:
# - Apache: https://github.com/nextcloud/server/blob/master/.htaccess
# - Nginx: https://docs.nextcloud.com/server/stable/admin_manual/installation/nginx.html
# - Nginx: https://github.com/nextcloud/documentation/blob/master/admin_manual/installation/nginx.rst#nextcloud-in-a-subdir-of-the-nginx-webroot

# Redirect OCM/OCS provider requests to Nextcloud endpoint:
url.redirect += (
"^/ocm-provider" => "/nextcloud/ocm-provider",
"^/ocs-provider" => "/nextcloud/ocs-provider"
"^/.well-known/webfinger" => "/nextcloud/index.php/.well-known/webfinger",
"^/.well-known/nodeinfo" => "/nextcloud/index.php/.well-known/nodeinfo"
)

$HTTP["url"] =~ "^/nextcloud($|/)" {
Expand All @@ -17,17 +17,17 @@ $HTTP["url"] =~ "^/nextcloud($|/)" {
$HTTP["url"] =~ "^/nextcloud/(\.|autotest|occ|issue|indie|db_|console)" { url.access-deny = ("") }
# - Directory listing
dir-listing.activate = "disable"
# - Cache control and security headers for static resources
$HTTP["url"] =~ "^/nextcloud/.+[^/]\.(css|js|woff2?|svg|gif|map)$" {
# - Security and cache control headers for static resources
$HTTP["url"] =~ "\.(css|js|svg|gif|png|woff2?|map)$" {
setenv.add-response-header += (
"Cache-Control" => "public, max-age=15778463",
"Referrer-Policy" => "no-referrer",
"X-Content-Type-Options" => "nosniff",
"X-Download-Options" => "noopen",
"X-Frame-Options" => "SAMEORIGIN",
"X-Permitted-Cross-Domain-Policies" => "none",
"X-Robots-Tag" => "none",
"X-XSS-Protection" => "1; mode=block",
"Cache-Control" => "public, max-age=15778463",
)
}

Expand Down
107 changes: 54 additions & 53 deletions .conf/dps_114/nginx.nextcloud.conf
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
# Based on: https://docs.nextcloud.com/server/stable/admin_manual/installation/nginx.html#nextcloud-in-a-subdir-of-nginx
# Based on: https://github.com/nextcloud/documentation/blob/master/admin_manual/installation/nginx.rst#nextcloud-in-a-subdir-of-the-nginx-webroot

# Redirect OCM/OCS provider requests to Nextcloud endpoint:
location ~ ^\/(?:ocm-provider|ocs-provider).* {
rewrite ^ /nextcloud$request_uri;
# Redirect webfinger and nodeinfo requests to Nextcloud endpoint
location ~ ^/\.well-known/(?:webfinger|nodeinfo) {
return 301 /nextcloud/index.php$request_uri;
}

location ^~ /nextcloud {

# Add headers to serve security related headers
#add_header Strict-Transport-Security "max-age=15768000; includeSubDomains;" always;
add_header Referrer-Policy "no-referrer" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Download-Options "noopen" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Permitted-Cross-Domain-Policies "none" always;
add_header X-Robots-Tag "none" always;
add_header X-XSS-Protection "1; mode=block" always;

# Remove X-Powered-By, which is an information leak
fastcgi_hide_header X-Powered-By;

# Set max upload size
client_max_body_size 1048576M;
fastcgi_buffers 64 4K;
Expand All @@ -32,22 +19,51 @@ location ^~ /nextcloud {
gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;

# Uncomment if your server is build with the ngx_pagespeed module
# This module is currently not supported.
# Pagespeed is not supported by Nextcloud, so if your server is built
# with the `ngx_pagespeed` module, uncomment this line to disable it.
#pagespeed off;

location /nextcloud {
rewrite ^ /nextcloud/index.php;
}
# HTTP response headers borrowed from Nextcloud `.htaccess`
#add_header Strict-Transport-Security "max-age=15768000; includeSubDomains;" always;
add_header Referrer-Policy "no-referrer" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Download-Options "noopen" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Permitted-Cross-Domain-Policies "none" always;
add_header X-Robots-Tag "none" always;
add_header X-XSS-Protection "1; mode=block" always;

location ~ ^\/nextcloud\/(?:build|tests|config|lib|3rdparty|templates|data)\/ {
deny all;
}
location ~ ^\/nextcloud\/(?:\.|autotest|occ|issue|indie|db_|console) {
deny all;
# Remove X-Powered-By, which is an information leak
fastcgi_hide_header X-Powered-By;

# Specify how to handle directories -- specifying `/nextcloud/index.php$request_uri`
# here as the fallback means that Nginx always exhibits the desired behaviour
# when a client requests a path that corresponds to a directory that exists
# on the server. In particular, if that directory contains an index.php file,
# that file is correctly served; if it doesn't, then the request is passed to
# the front-end controller. This consistent behaviour means that we don't need
# to specify custom rules for certain paths (e.g. images and other assets,
# `/updater`, `/ocm-provider`, `/ocs-provider`), and thus
# `try_files $uri $uri/ /nextcloud/index.php$request_uri`
# always provides the desired behaviour.
index index.php index.html /nextcloud/index.php$request_uri;

# Rule borrowed from `.htaccess` to handle Microsoft DAV clients
location = /nextcloud {
if ( $http_user_agent ~ ^DavClnt ) {
return 302 /nextcloud/remote.php/webdav/$is_args$args;
}
}

location ~ ^\/nextcloud\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+)\.php(?:$|\/) {
# Rules borrowed from `.htaccess` to hide certain paths from clients
location ~ ^/nextcloud/(?:build|tests|config|lib|3rdparty|templates|data)(?:$|/) { return 404; }
location ~ ^/nextcloud/(?:\.|autotest|occ|issue|indie|db_|console) { return 404; }

# Ensure this block, which passes PHP files to the PHP process, is above the blocks
# which handle static assets (as seen below). If this block is not declared first,
# then Nginx will encounter an infinite rewriting loop when it prepends
# `/nextcloud/index.php` to the URI, resulting in a HTTP 500 error response.
location ~ \.php(?:$|/) {
fastcgi_split_path_info ^(.+?\.php)(\/.*|)$;
set $path_info $fastcgi_path_info;
try_files $fastcgi_script_name =404;
Expand All @@ -60,36 +76,21 @@ location ^~ /nextcloud {
fastcgi_pass php;
fastcgi_intercept_errors on;
fastcgi_request_buffering off;
}

location ~ ^\/nextcloud\/(?:updater|oc[ms]-provider)(?:$|\/) {
try_files $uri/ =404;
index index.php;
}

# Adding the cache control header for js and css files
# Make sure it is BELOW the PHP block
location ~ ^\/nextcloud\/.+[^\/]\.(?:css|js|woff2?|svg|gif|map)$ {
location ~ \.(?:css|js|svg|gif)$ {
try_files $uri /nextcloud/index.php$request_uri;
add_header Cache-Control "public, max-age=15778463";
# Add headers to serve security related headers (It is intended
# to have those duplicated to the ones above)
#add_header Strict-Transport-Security "max-age=15768000; includeSubDomains;" always;
add_header Referrer-Policy "no-referrer" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Download-Options "noopen" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Permitted-Cross-Domain-Policies "none" always;
add_header X-Robots-Tag "none" always;
add_header X-XSS-Protection "1; mode=block" always;

# Optional: Don't log access to assets
access_log off;
expires 6M; # Cache-Control policy borrowed from `.htaccess`
access_log off; # Optional: Don't log access to assets
}

location ~ ^\/nextcloud\/.+[^\/]\.(?:png|html|ttf|ico|jpg|jpeg)$ {
location ~ \.woff2?$ {
try_files $uri /nextcloud/index.php$request_uri;
# Optional: Don't log access to other assets
access_log off;
expires 7d; # Cache-Control policy borrowed from `.htaccess`
access_log off; # Optional: Don't log access to assets
}

location /nextcloud {
try_files $uri $uri/ /nextcloud/index.php$request_uri;
}
}
92 changes: 92 additions & 0 deletions .conf/dps_182/unbound.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# https://nlnetlabs.nl/documentation/unbound/unbound.conf/
server:
# Do not daemonize, to allow proper systemd service control and status estimation.
do-daemonize: no

# A single thread is pretty sufficient for home or small office instances.
num-threads: 1

# Logging: For the sake of privacy and performance, keep logging at a minimum!
# - Verbosity 2 and up practically contains query and reply logs.
verbosity: 0
log-queries: no
log-replies: no
# - If required, uncomment to log to a file, else logs are available via "journalctl -u unbound".
#logfile: "/var/log/unbound.log"

# Set interface to "0.0.0.0" to make Unbound listen on all network interfaces.
# Set it to "127.0.0.1" to listen on requests from the same machine only, useful in combination with Pi-hole.
interface: 0.0.0.0
# Default DNS port is "53". When used with Pi-hole, set this to e.g. "5335", since "5353" is used by mDNS already.
port: 53

# Control IP ranges which should be able to use this Unbound instance.
# The DietPi defaults permit access from official local network IP ranges only, hence requests from www are denied.
access-control: 0.0.0.0/0 refuse
access-control: 10.0.0.0/8 allow
access-control: 127.0.0.1/8 allow
access-control: 172.16.0.0/12 allow
access-control: 192.168.0.0/16 allow
access-control: ::/0 refuse
access-control: ::1/128 allow
access-control: fd00::/8 allow
access-control: fe80::/10 allow

# Private IP ranges, which shall never be returned or forwarded as public DNS response.
# NB: 127.0.0.1/8 is sometimes used by adblock lists, hence DietPi by default allows those as response.
private-address: 10.0.0.0/8
private-address: 172.16.0.0/12
private-address: 192.168.0.0/16
private-address: 169.254.0.0/16
private-address: fd00::/8
private-address: fe80::/10

# Define protocols for connections to and from Unbound.
# NB: Disabling IPv6 does not disable IPv6 IP resolving, which depends on the clients request.
do-udp: yes
do-tcp: yes
do-ip4: yes
do-ip6: yes
prefer-ip6: no

# DNS root server information file. Update regularly via: "curl -# https://www.internic.net/domain/named.root > /var/lib/unbound/root.hints"
root-hints: "/var/lib/unbound/root.hints"

# Maximum number of queries per second
ratelimit: 1000

# Defend against and print warning when reaching unwanted reply limit.
unwanted-reply-threshold: 10000

# Set EDNS reassembly buffer size to match new upstream default, as of DNS Flag Day 2020 recommendation.
edns-buffer-size: 1232

# Increase incoming and outgoing query buffer size to cover traffic peaks.
so-rcvbuf: 4m
so-sndbuf: 4m

# Hardening
harden-glue: yes
harden-dnssec-stripped: yes
harden-algo-downgrade: yes
harden-large-queries: yes
harden-short-bufsize: yes

# Privacy
use-caps-for-id: yes # Spoof protection by randomising capitalisation
rrset-roundrobin: yes
qname-minimisation: yes
minimal-responses: yes
hide-identity: yes
identity: "Server" # Purposefully a dummy identity name
hide-version: yes

# Caching
cache-min-ttl: 300
cache-max-ttl: 86400
serve-expired: yes
neg-cache-size: 4M
prefetch: yes
prefetch-key: yes
msg-cache-size: 50m
rrset-cache-size: 100m
6 changes: 2 additions & 4 deletions .conf/dps_39/minidlna.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ media_dir=V,/mnt/dietpi_userdata/Video
# Path to the directory that should hold the database and album art cache.
db_dir=/mnt/dietpi_userdata/.MiniDLNA_Cache

# Path to the directory that should hold the log file.
log_dir=/var/log

# Must be one of "off", "fatal", "error", "warn", "info" or "debug".
# "off" turns of logging entirely, "fatal" is the highest level of importance
# "off" turns of logging entirely, "fatal" is the highest level of importance.
# Access logs via: "journalctl -u minidlna"
log_level=warn

# Use a different container as the root of the directory tree presented to
Expand Down
12 changes: 6 additions & 6 deletions .conf/dps_59/raspimjpeg.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/dash
{
#////////////////////////////////////
# DietPi Raspimjpeg control Script
Expand All @@ -7,7 +7,7 @@
# Created by Daniel Knight / daniel.knight@dietpi.com / dietpi.com
#
# Info:
# - Location: /var/lib/dietpi/dietpi-software/services/raspimjpeg.sh
# - Location: /var/lib/dietpi/dietpi-software/installed/raspimjpeg.sh
# - Allows service control for Raspimjpeg and PHP schedule, used by RPi Camera Web
# - Called from /etc/systemd/system/raspimjpeg.service
#
Expand All @@ -24,17 +24,17 @@
mkdir -p /dev/shm/mjpeg
chown www-data:www-data /dev/shm/mjpeg
chmod 777 /dev/shm/mjpeg
sudo -u www-data raspimjpeg &> /dev/null &
sudo -u www-data raspimjpeg > /dev/null 2>&1 &
sleep 4
sudo -u www-data php /var/www/rpicam/schedule.php &> /dev/null &
sudo -u www-data php /var/www/rpicam/schedule.php > /dev/null 2>&1 &

}

if [[ $1 == 'stop' ]]; then
if [ "$1" = 'stop' ]; then

Raspimjeg_Stop

elif [[ $1 == 'start' ]]; then
elif [ "$1" = 'start' ]; then

Raspimjeg_Start

Expand Down
Loading