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

Dev > Beta #2392

Merged
merged 329 commits into from
Jan 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
329 commits
Select commit Hold shift + click to select a range
accb1c1
v6.20
Dec 20, 2018
3f4c49f
v6,20
Dec 20, 2018
3768e6c
v6.20
Dec 20, 2018
9f98a6c
v6.20
Dec 21, 2018
0193998
v6.20
Dec 21, 2018
9f984ec
v6.20
Dec 21, 2018
4348511
v6.20
Dec 21, 2018
fa72889
v6.20
Dec 21, 2018
2a278e1
v6.20
Dec 21, 2018
b21b55d
v6.20
Dec 21, 2018
9aab3e9
v6.20
MichaIng Dec 21, 2018
b518b01
v6.20
MichaIng Dec 21, 2018
ccbde66
v6.20
MichaIng Dec 21, 2018
9915f69
v6.20
MichaIng Dec 21, 2018
1ed6553
v6.20
MichaIng Dec 21, 2018
99946cf
v6.20
MichaIng Dec 21, 2018
c358fca
v6.20
MichaIng Dec 21, 2018
448b168
v6.20
Dec 22, 2018
55d14c1
v6.20
Dec 22, 2018
95fa0df
v6.20
Dec 22, 2018
c9f6200
v6.20
Dec 22, 2018
bbb3132
v6.20
Dec 22, 2018
e295b48
v6.20
Dec 22, 2018
cd0ae6f
v6.20
MichaIng Dec 22, 2018
2c5d03b
v6.20
MichaIng Dec 22, 2018
46872d8
v6.20
MichaIng Dec 22, 2018
bdfa7e2
v6.20
MichaIng Dec 22, 2018
687b32f
v6.20
MichaIng Dec 22, 2018
16269e9
v6.20
MichaIng Dec 22, 2018
99afde5
v6.20
MichaIng Dec 22, 2018
e33ca15
v6.20
MichaIng Dec 22, 2018
04de207
v6.20
MichaIng Dec 23, 2018
003c05c
v6.20
MichaIng Dec 23, 2018
a948fa1
v6.20
MichaIng Dec 23, 2018
f6017b9
v6.20
MichaIng Dec 23, 2018
eb43eaf
v6.20
MichaIng Dec 23, 2018
a454034
v6.20
MichaIng Dec 24, 2018
1ed80c6
v6.20
MichaIng Dec 24, 2018
2b53c6c
v6.20
MichaIng Dec 24, 2018
bb84191
v6.20
MichaIng Dec 24, 2018
a04630b
v6.20
MichaIng Dec 24, 2018
a101f10
v6.20
MichaIng Dec 24, 2018
67d47e6
v6.20
MichaIng Dec 24, 2018
ac1994b
Merge pull request #2361 from Fourdee/ownextcloud
Fourdee Dec 24, 2018
6361ec1
v6.20
Dec 24, 2018
ef35535
Merge branch 'dev' of https://github.com/Fourdee/DietPi into dev
Dec 24, 2018
3219a11
v6.20
Dec 24, 2018
a7180ae
v6.20
Dec 24, 2018
c463b75
v6.20
MichaIng Dec 25, 2018
aa5bffd
v6.20
MichaIng Dec 26, 2018
cce0808
v6.20
MichaIng Dec 26, 2018
b860f7e
v6.20
MichaIng Dec 26, 2018
0a4de8b
v6.20
MichaIng Dec 26, 2018
c0aece1
v6.20
MichaIng Dec 26, 2018
e07095d
v6.20
MichaIng Dec 26, 2018
9d5d1c7
v6.20
MichaIng Dec 26, 2018
d7d1593
v6.20
MichaIng Dec 26, 2018
2fa2214
v6.20
Dec 26, 2018
4523e9a
Merge branch 'dev' of https://github.com/Fourdee/DietPi into dev
Dec 26, 2018
54dd6b4
v6.20
MichaIng Dec 26, 2018
76eb75c
v6.20
MichaIng Dec 26, 2018
f79375a
v6.20
MichaIng Dec 26, 2018
25a8049
v6.20
MichaIng Dec 26, 2018
0f0b076
v6.20 (#2366)
MichaIng Dec 27, 2018
b662dc6
v6.20
Dec 27, 2018
21f2a61
Merge branch 'dev' of https://github.com/Fourdee/DietPi into dev
Dec 27, 2018
24f912c
v6.20
Dec 27, 2018
5030e49
Merge branch 'dev' into medusa
Fourdee Dec 27, 2018
be2793d
v6.20
MichaIng Dec 27, 2018
2f88be5
v6.20
MichaIng Dec 27, 2018
6442672
v6.20
MichaIng Dec 27, 2018
172a88f
v6.20
MichaIng Dec 27, 2018
a29fa87
v6.20
Dec 27, 2018
a34fd15
META | Add FeatHub page to README.md
MichaIng Dec 27, 2018
828ff00
META | README: Add Medusa GitHub link
MichaIng Dec 28, 2018
bf35138
Merge pull request #2373 from Fourdee/FeatHub
Fourdee Dec 28, 2018
e5fbff2
META | Spelling; Remove Grasshopper link
MichaIng Dec 28, 2018
1a44d58
META | Minor update
MichaIng Dec 28, 2018
25c80d3
META | README.md: Consistent list item marker
MichaIng Dec 28, 2018
74e6b15
META | CONTRIBUTING.md: Consistent list item marker
MichaIng Dec 28, 2018
85dc797
META | Tiny
MichaIng Dec 28, 2018
f2262dd
META | bug_report.md: Consistancy
MichaIng Dec 28, 2018
91f8d9c
META | feature_request.md: Consistancy
MichaIng Dec 28, 2018
ca84312
META | image_request.md: Consistancy
MichaIng Dec 28, 2018
af7ec88
META | software_request.md: Consistancy
MichaIng Dec 28, 2018
541283c
v6.20
MichaIng Dec 28, 2018
21cf397
v6.20
MichaIng Dec 29, 2018
1be36c4
v6.20
MichaIng Dec 30, 2018
da5d8e1
v6.20
MichaIng Dec 30, 2018
bbbf631
v6.20
MichaIng Dec 30, 2018
2f4d0e4
v6.20
MichaIng Dec 30, 2018
66af063
v6.20
MichaIng Dec 30, 2018
e411ae9
v6.20
MichaIng Dec 30, 2018
fe60723
Merge pull request #2369 from Fourdee/medusa
Fourdee Dec 31, 2018
16123c6
v6.20
Dec 31, 2018
d61ec6c
v6.20
MichaIng Jan 2, 2019
f326547
v6.20
MichaIng Jan 2, 2019
2c76792
v6.20
Jan 2, 2019
2931d78
v6.20
MichaIng Jan 2, 2019
1905b27
v6.20
Jan 2, 2019
8436867
Merge branch 'dev' of https://github.com/Fourdee/DietPi into dev
Jan 2, 2019
cc40aad
v6.20
MichaIng Jan 3, 2019
b53df83
v6.20
MichaIng Jan 3, 2019
2c00b0a
v6.20
Jan 3, 2019
3fdea0c
Merge branch 'dev' of https://github.com/Fourdee/DietPi into dev
Jan 3, 2019
3d1b692
Merge branch 'dev' into mpd
Fourdee Jan 3, 2019
0321d9f
v6.20
MichaIng Jan 3, 2019
c152d1f
v6.20
MichaIng Jan 3, 2019
3e51535
v6.20
MichaIng Jan 3, 2019
29aaec5
v6.20
MichaIng Jan 3, 2019
337b20a
v6.20
MichaIng Jan 3, 2019
86137df
v6.20
MichaIng Jan 3, 2019
6fb7fe6
v6.20
MichaIng Jan 3, 2019
10efc06
v6.20
MichaIng Jan 3, 2019
ac7c477
v6.20
MichaIng Jan 4, 2019
c56b20d
Merge branch 'dev' into mpd
MichaIng Jan 4, 2019
93ffc2a
v6.20
MichaIng Jan 4, 2019
2c4bd00
Merge pull request #2381 from Fourdee/mpd
Fourdee Jan 4, 2019
8f6c6dc
v6.20
Jan 4, 2019
49e9f6b
v6.20
Jan 4, 2019
f437c8c
v6.20
Jan 4, 2019
6179d1a
v6.20
MichaIng Jan 4, 2019
4529fb7
v6.20
MichaIng Jan 4, 2019
cda3390
v6.20
Jan 4, 2019
651b25c
Merge branch 'dev' of https://github.com/Fourdee/DietPi into dev
Jan 4, 2019
977df88
v6.20
MichaIng Jan 4, 2019
17ef979
v6.20
MichaIng Jan 4, 2019
6573fd6
v6.20
MichaIng Jan 4, 2019
22a80f9
v6.20
MichaIng Jan 4, 2019
817a45c
v6.20
MichaIng Jan 5, 2019
ea75ca2
v6.20
MichaIng Jan 5, 2019
d1d2afe
v6.20
MichaIng Jan 5, 2019
4bd45d9
v6.20
MichaIng Jan 5, 2019
7d0d117
v6.20
MichaIng Jan 5, 2019
1a8e557
v6.20
MichaIng Jan 5, 2019
2263419
v6.20
Jan 5, 2019
c0d790d
v6.20
Jan 5, 2019
6c39a08
v6.20
Jan 5, 2019
20d124f
v6.20
Jan 5, 2019
d7d7545
Merge pull request #2393 from Fourdee/clear_conf
Fourdee Jan 5, 2019
bff17ab
v6.20
Jan 5, 2019
c092d97
v6.20
MichaIng Jan 5, 2019
3c34712
v6.20
Jan 5, 2019
f3a12ec
Merge branch 'dev' of https://github.com/Fourdee/DietPi into dev
Jan 5, 2019
ebb037d
v6.20
Jan 5, 2019
4fd43c5
v6.20
Jan 5, 2019
5886dad
v6.20
Jan 5, 2019
dfda2b5
v6.20
Jan 5, 2019
aa68ae7
v6.20
MichaIng Jan 6, 2019
a22be22
v6.20
MichaIng Jan 6, 2019
e66c1bf
v6.20
MichaIng Jan 6, 2019
408c3f2
v6.20
MichaIng Jan 6, 2019
8f9e815
v6.20
MichaIng Jan 6, 2019
556469b
v6.20
MichaIng Jan 6, 2019
2897ad0
v6.20
MichaIng Jan 6, 2019
2ba2770
v6.20
MichaIng Jan 6, 2019
297c945
v6.20
Jan 7, 2019
ff428f7
Merge branch 'dev' of https://github.com/Fourdee/DietPi into dev
Jan 7, 2019
6ad0a4c
v6.20
Jan 7, 2019
4383f86
Merge branch 'dev' into wireguard
MichaIng Jan 7, 2019
ce0397e
v6.20
MichaIng Jan 7, 2019
3ccd572
v6.20
MichaIng Jan 7, 2019
3909e2e
v6.20
MichaIng Jan 7, 2019
f60a0e0
v6.20
Jan 7, 2019
206e9d7
Merge branch 'dev' of https://github.com/Fourdee/DietPi into dev
Jan 7, 2019
8c5ce3f
v6.20
Jan 7, 2019
2133b15
v6.20
Jan 7, 2019
83269c4
v6.20
Jan 7, 2019
9ab0bb3
v6.20
Jan 7, 2019
6c03b20
v6.20
Jan 7, 2019
8a59961
Merge pull request #2397 from Fourdee/samba-cache
Fourdee Jan 7, 2019
fe737ea
v6.20
MichaIng Jan 7, 2019
9dd39f7
v6.20
MichaIng Jan 7, 2019
dcdc3e3
v6.20
MichaIng Jan 7, 2019
b1728a4
v6.20
MichaIng Jan 7, 2019
5225b5a
v6.20
MichaIng Jan 7, 2019
453128c
v6.20
MichaIng Jan 8, 2019
5eb1c78
Merge branch 'dev' into wireguard
MichaIng Jan 8, 2019
b91c2f7
v6.20
MichaIng Jan 8, 2019
d405cf6
v6.20
MichaIng Jan 8, 2019
f2f0141
v6.20
MichaIng Jan 8, 2019
141637b
v6.20
MichaIng Jan 8, 2019
e11d842
v6.20
MichaIng Jan 8, 2019
564c977
v6.20
MichaIng Jan 8, 2019
007d3e6
v6.20
MichaIng Jan 9, 2019
c60c29d
v6.20
MichaIng Jan 9, 2019
f81eada
v6.20
MichaIng Jan 9, 2019
eb760f2
v6.20
MichaIng Jan 9, 2019
f5715fe
v6.20
MichaIng Jan 9, 2019
7215d7e
v6.20
MichaIng Jan 9, 2019
3605095
v6.20
MichaIng Jan 9, 2019
5f3043a
v6.20
MichaIng Jan 9, 2019
b67f7de
v6.20
Jan 9, 2019
4ca73c1
Merge branch 'dev' of https://github.com/Fourdee/DietPi into dev
Jan 9, 2019
d4fc7e8
v6.20
Jan 9, 2019
f875c22
v6.20
Jan 9, 2019
9513852
v6.20
Jan 9, 2019
03aae34
v6.20
MichaIng Jan 9, 2019
393b0cd
v6.20
MichaIng Jan 9, 2019
086ca3e
v6.20
MichaIng Jan 9, 2019
b87405b
v6.20
MichaIng Jan 9, 2019
2f204d3
Merge pull request #2402 from Fourdee/rpi_config
Fourdee Jan 10, 2019
5b08754
v6.20
Jan 10, 2019
97a43ff
Merge branch 'dev' of https://github.com/Fourdee/DietPi into dev
Jan 10, 2019
1339690
Merge branch 'dev' into wireguard
MichaIng Jan 10, 2019
96055f6
v6.20
MichaIng Jan 10, 2019
26e65c5
v6.20
MichaIng Jan 11, 2019
0597b12
v6.20
MichaIng Jan 11, 2019
bb1b271
v6.20
MichaIng Jan 11, 2019
0169ccd
v6.20
MichaIng Jan 11, 2019
25bb65f
META | DietPi-Survey_report: Add new and changed v6.20 software IDs
MichaIng Jan 11, 2019
9981746
v6.20
Jan 11, 2019
bf35386
Merge pull request #2398 from Fourdee/wireguard
Fourdee Jan 11, 2019
d9cd41a
v6.20
Jan 11, 2019
6e191c5
v6.20
Jan 11, 2019
3a13420
v6.20
Jan 11, 2019
cde0d8b
Merge pull request #2405 from Fourdee/rpi-headless
Fourdee Jan 11, 2019
80b8188
v6.20
Jan 11, 2019
c83778d
v6.20
Jan 11, 2019
967af77
v6.20
Jan 11, 2019
e14d61b
v6.20
Jan 11, 2019
e532611
v6.20
Jan 11, 2019
5860706
v6.20
Jan 11, 2019
24bd79f
v6.20
Jan 11, 2019
e3ffe31
v6.20
Jan 11, 2019
c813fa6
v6.20
Jan 11, 2019
7340c2a
v6.20
Jan 11, 2019
ddb317f
v6.20
Jan 12, 2019
5ecea64
v6.20
Jan 12, 2019
693024a
v6.20
MichaIng Jan 12, 2019
1ed6643
v6.20
MichaIng Jan 12, 2019
5b7ad8b
v6.20
MichaIng Jan 12, 2019
872cc5c
v6.20
MichaIng Jan 12, 2019
9d4f6d9
Merge pull request #2407 from Fourdee/kernel_updates
Fourdee Jan 13, 2019
8cf1416
v6.20
Jan 13, 2019
1f02ca7
v6.20
Jan 13, 2019
53267bb
v6.20
Jan 13, 2019
7382667
v6.20
MichaIng Jan 13, 2019
8920eac
v6.20
MichaIng Jan 13, 2019
9ea1e6a
v6.20
MichaIng Jan 13, 2019
d3c580f
v6.20
MichaIng Jan 13, 2019
ce612ad
v6.20
MichaIng Jan 13, 2019
550c549
v6.20
MichaIng Jan 13, 2019
13755d9
v6.20
MichaIng Jan 13, 2019
c86bb06
v6.20
MichaIng Jan 13, 2019
2234222
v6.20
MichaIng Jan 13, 2019
6490e6d
v6.20
MichaIng Jan 13, 2019
c9ca128
v6.20
MichaIng Jan 15, 2019
da5370a
Merge pull request #2410 from Fourdee/airsonic
Fourdee Jan 15, 2019
60f5740
Merge pull request #2408 from Fourdee/nomachine
Fourdee Jan 15, 2019
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: 2 additions & 0 deletions .conf/dps_114/apache.nextcloud.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Based on: https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#apache-web-server-configuration

<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All
Expand Down
35 changes: 28 additions & 7 deletions .conf/dps_114/lighttpd.nextcloud.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
# Solve OPcache settings warning on Nextcloud admin panel:
# Derived from:
# - Apache: https://github.com/nextcloud/server/blob/master/.htaccess
# - Nginx: https://docs.nextcloud.com/server/stable/admin_manual/installation/nginx.html

$HTTP["url"] =~ "^/nextcloud($|/)" {
setenv.add-environment += (
"PHP_ADMIN_VALUE" => "opcache.memory_consumption=128",
)
}

# Set "Referrer-Policy" = "no-referrer" security header
setenv.add-response-header = ( "Referrer-Policy" => "no-referrer" )
# Hardening
# - Directories
$HTTP["url"] =~ "^/nextcloud/(build|tests|config|lib|3rdparty|templates|data)($|/)" { url.access-deny = ("") }
# - Files
$HTTP["url"] =~ "^/nextcloud/(\.|autotest|occ|issue|indie|db_|console)" { url.access-deny = ("") }
# - Directory listing
dir-listing.active = "disable"
# - Cache control and security headers for static resources
$HTTP["url"] =~ "^/nextcloud/.*\.(css|js|woff2?|svg|gif)$" {
setenv.add-response-header += (
"Cache-Control" => "public, max-age=15778463",
"X-Content-Type-Options" => "nosniff",
"X-XSS-Protection" => "1; mode=block",
"X-Robots-Tag" => "none",
"X-Download-Options" => "noopen",
"X-Permitted-Cross-Domain-Policies" => "none",
"Referrer-Policy" => "no-referrer",
)
}

# Solve OPcache settings warning on Nextcloud admin panel
setenv.add-environment += ( "PHP_ADMIN_VALUE" => "opcache.memory_consumption=128" )

}
31 changes: 15 additions & 16 deletions .conf/dps_114/nginx.nextcloud.conf
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# Based on: https://docs.nextcloud.com/server/stable/admin_manual/installation/nginx.html

location ^~ /nextcloud {

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

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

# set max upload size
# Set max upload size
client_max_body_size 1048576M;
fastcgi_buffers 64 4K;

Expand All @@ -26,9 +30,6 @@ location ^~ /nextcloud {
# This module is currently not supported.
#pagespeed off;

error_page 403 /nextcloud/core/templates/403.php;
error_page 404 /nextcloud/core/templates/404.php;

location /nextcloud {
rewrite ^ /nextcloud/index.php$request_uri;
}
Expand All @@ -46,16 +47,15 @@ location ^~ /nextcloud {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
# HTTPS forces redirection from http://, thus has to be enabled only on active HTTPS environment.
#fastcgi_param HTTPS on;
fastcgi_param HTTPS $https;
# Avoid sending the security headers twice
fastcgi_param modHeadersAvailable true;
# Front controller enables pretty URLs without /index.php/, which works fine since Nextcloud 13!
fastcgi_param front_controller_active true;
fastcgi_pass php;
fastcgi_intercept_errors on;
# Disable on Jessie, because Jessie Nginx does not support that parameter
# Disable on Jessie, because Jessie Nginx does not support this directive
#fastcgi_request_buffering off;
# Hard coding 128M OPCache size, only for /nextcloud, to suppress warning on nextcloud admin panel.
# Hard coding 128M OPCache size to suppress warning on Nextcloud admin panel.
fastcgi_param PHP_ADMIN_VALUE "opcache.memory_consumption=128";
}

Expand All @@ -71,15 +71,14 @@ location ^~ /nextcloud {
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)
# Before enabling Strict-Transport-Security headers please read
# into this topic first.
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
#add_header Strict-Transport-Security "max-age=15768000; includeSubDomains;";
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
#add_header X-Frame-Options "SAMEORIGIN";
add_header X-Permitted-Cross-Domain-Policies none;
add_header Referrer-Policy no-referrer;

# Optional: Don't log access to assets
access_log off;
}
Expand Down
20 changes: 20 additions & 0 deletions .conf/dps_118/mopidy.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[core]
cache_dir = /mnt/dietpi_userdata/mopidy/cache
config_dir = /etc/mopidy
data_dir = /mnt/dietpi_userdata/mopidy/data

[logging]
config_file = /etc/mopidy/logging.conf
debug_file = /var/log/mopidy/mopidy.log

[local]
media_dir = /mnt

[file]
media_dirs = /mnt|Mounts

[m3u]
playlists_dir = /mnt/dietpi_userdata/Music

[http]
hostname = ::
2 changes: 1 addition & 1 deletion dietpi/conf/mpd.conf → .conf/dps_128/mpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pid_file "/var/run/mpd/pid"
state_file "/mnt/dietpi_userdata/.mpd_cache/state"
sticker_file "/mnt/dietpi_userdata/.mpd_cache/sticker.sql"

user "root"
user "mpd"
group "dietpi"

bind_to_address "localhost"
Expand Down
2 changes: 2 additions & 0 deletions .conf/dps_47/apache.owncloud.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Based on: https://doc.owncloud.org/server/administration_manual/installation/manual_installation.html#configure-apache-web-server

<Directory /var/www/owncloud/>
Options +FollowSymlinks
AllowOverride All
Expand Down
28 changes: 28 additions & 0 deletions .conf/dps_47/lighttpd.owncloud.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Derived from:
# - Apache: https://github.com/owncloud/core/blob/master/.htaccess
# - Nginx: https://doc.owncloud.org/server/administration_manual/installation/nginx_configuration.html

$HTTP["url"] =~ "^/owncloud($|/)" {

# Hardening
# - Directories
$HTTP["url"] =~ "^/owncloud/(build|tests|config|lib|3rdparty|templates|data)($|/)" { url.access-deny = ("") }
# - Files
$HTTP["url"] =~ "^/owncloud/(\.|autotest|occ|issue|indie|db_|console)" { url.access-deny = ("") }
# - Directory listing
dir-listing.active = "disable"
# - Cache control and security headers for static resources
$HTTP["url"] =~ "^/owncloud/.+\.(css|js)" {
setenv.add-response-header += (
"Cache-Control" => "public, max-age=15778463",
"X-Frame-Options" => "SAMEORIGIN",
"X-Content-Type-Options" => "nosniff",
"X-XSS-Protection" => "1; mode=block",
"X-Robots-Tag" => "none",
"X-Download-Options" => "noopen",
"X-Permitted-Cross-Domain-Policies" => "none",
"Referrer-Policy" => "no-referrer",
)
}

}
163 changes: 81 additions & 82 deletions .conf/dps_47/nginx.owncloud.conf
Original file line number Diff line number Diff line change
@@ -1,95 +1,94 @@
location ^~ /owncloud {

# Add headers to serve security related headers
# Before enabling Strict-Transport-Security headers please read into this topic first.
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains";
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
add_header Referrer-Policy "no-referrer";
# Based on: https://doc.owncloud.org/server/administration_manual/installation/nginx_configuration.html

# set max upload size
client_max_body_size 1048576M;
# Do not set the number of buffers over 63, in our example it is set to 8.
# When exeeding, big file downloads can possibly consume a lot of system memory over time and cause problems especially on low-mem systems.
fastcgi_buffers 8 4K;
# From ownCloud version 10.0.4 on, a header statement will be sent to nginx not to use buffers to avoid problems with problematic fastcgi_buffers values. See note above.
# If these values are properly set and no problems are expected, you can turn on this statement to reenable buffering overriding the sent header.
# In case you use an earlier version of ownCloud or can´t change the buffers, or you can´t remove a existing ignore header statement, you can explicitly set fastcgi_buffering off;
# These statements are used either or but not together.
fastcgi_ignore_headers X-Accel-Buffering;
location ^~ /owncloud {

# Disable gzip to avoid the removal of the ETag header
# Enabling gzip would also make your server vulnerable to BREACH
# if no additional measures are done. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773332
gzip off;
# Add headers to serve security related headers
#add_header Strict-Transport-Security "max-age=15552000; includeSubDomains";
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
add_header Referrer-Policy no-referrer;

# Uncomment if your server is build with the ngx_pagespeed module
# This module is currently not supported.
#pagespeed off;
# Set max upload size
client_max_body_size 1048576M;
# Do not set the number of buffers over 63, in our example it is set to 8.
# When exeeding, big file downloads can possibly consume a lot of system memory over time and cause problems especially on low-mem systems.
fastcgi_buffers 8 4K;
# From ownCloud version 10.0.4 on, a header statement will be sent to nginx not to use buffers to avoid problems with problematic fastcgi_buffers values. See note above.
# If these values are properly set and no problems are expected, you can turn on this statement to reenable buffering overriding the sent header.
# In case you use an earlier version of ownCloud or can´t change the buffers, or you can´t remove a existing ignore header statement, you can explicitly set fastcgi_buffering off;
# These statements are used either or but not together.
fastcgi_ignore_headers X-Accel-Buffering;

error_page 403 /owncloud/core/templates/403.php;
error_page 404 /owncloud/core/templates/404.php;
# Disable gzip to avoid the removal of the ETag header
# Enabling gzip would also make your server vulnerable to BREACH
# if no additional measures are done. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773332
gzip off;

location /owncloud {
rewrite ^ /owncloud/index.php$uri;
}
# Uncomment if your server is build with the ngx_pagespeed module
# This module is currently not supported.
#pagespeed off;

location ~ ^/owncloud/(?:build|tests|config|lib|3rdparty|templates|data)/ {
return 404;
}
error_page 403 /owncloud/core/templates/403.php;
error_page 404 /owncloud/core/templates/404.php;

location ~ ^/owncloud/(?:\.|autotest|occ|issue|indie|db_|console) {
return 404;
}
location /owncloud {
rewrite ^ /owncloud/index.php$uri;
}

location ~ ^/owncloud/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34])\.php(?:$|/) {
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name; # necessary for owncloud to detect the contextroot https://github.com/owncloud/core/blob/v10.0.0/lib/private/AppFramework/Http/Request.php#L603
fastcgi_param PATH_INFO $fastcgi_path_info;
#fastcgi_param HTTPS on;
fastcgi_param modHeadersAvailable true; #Avoid sending the security headers twice
# EXPERIMENTAL: active the following if you need to get rid of the 'index.php' in the URLs
fastcgi_param front_controller_active true;
fastcgi_read_timeout 180; # increase default timeout e.g. for long running carddav/ caldav syncs with 1000+ entries
fastcgi_pass php;
fastcgi_intercept_errors on;
#fastcgi_request_buffering off; #Available since NGINX 1.7.11
}
location ~ ^/owncloud/(?:build|tests|config|lib|3rdparty|templates|data)/ {
return 404;
}
location ~ ^/owncloud/(?:\.|autotest|occ|issue|indie|db_|console) {
return 404;
}

location ~ ^/owncloud/(?:updater|ocs-provider)(?:$|/) {
try_files $uri $uri/ =404;
index index.php;
}
location ~ ^/owncloud/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34])\.php(?:$|/) {
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name; # necessary for owncloud to detect the contextroot https://github.com/owncloud/core/blob/v10.0.0/lib/private/AppFramework/Http/Request.php#L603
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS $https;
fastcgi_param modHeadersAvailable true; #Avoid sending the security headers twice
# EXPERIMENTAL: active the following if you need to get rid of the 'index.php' in the URLs
fastcgi_param front_controller_active true;
fastcgi_read_timeout 180; # increase default timeout e.g. for long running carddav/ caldav syncs with 1000+ entries
fastcgi_pass php;
fastcgi_intercept_errors on;
#fastcgi_request_buffering off; #Available since NGINX 1.7.11
}

# Adding the cache control header for js and css files
# Make sure it is BELOW the PHP block
location ~ /owncloud(\/.*\.(?:css|js)) {
try_files $uri /owncloud/index.php$uri$is_args$args;
add_header Cache-Control "max-age=15778463";
# Add headers to serve security related headers (It is intended to have those duplicated to the ones above)
# Before enabling Strict-Transport-Security headers please read into this topic first.
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains";
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
# Optional: Don't log access to assets
access_log off;
}
location ~ ^/owncloud/(?:updater|ocs-provider)(?:$|/) {
try_files $uri $uri/ =404;
index index.php;
}

location ~ /owncloud(/.*\.(?:svg|gif|png|html|ttf|woff|ico|jpg|jpeg|map)) {
try_files $uri /owncloud/index.php$uri$is_args$args;
add_header Cache-Control "public, max-age=7200";
# Optional: Don't log access to other assets
access_log off;
}
# Adding the cache control header for js and css files
# Make sure it is BELOW the PHP block
location ~ /owncloud/.*\.(?:css|js) {
try_files $uri /owncloud/index.php$uri$is_args$args;
add_header Cache-Control "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=15552000; includeSubDomains";
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
add_header Referrer-Policy no-referrer;
# Optional: Don't log access to assets
access_log off;
}

location ~ /owncloud/.*\.(?:svg|gif|png|html|ttf|woff|ico|jpg|jpeg|map|json) {
try_files $uri /owncloud/index.php$uri$is_args$args;
add_header Cache-Control "public, max-age=7200";
# Optional: Don't log access to other assets
access_log off;
}
}
8 changes: 6 additions & 2 deletions .conf/dps_51/run
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@
# - Starts X if not already running
#
# Usage:
# /DietPi/dietpi/conf/opentyrian_run
# run
#////////////////////////////////////

#Xserver already running
if (($(pidof X) >= 0)); then

/usr/local/games/opentyrian/opentyrian -t /usr/local/games/opentyrian/data

#No X (init X server)
else

xinit /usr/local/games/opentyrian/opentyrian -t /usr/local/games/opentyrian/data
fi

fi
Loading