-
-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
68 changed files
with
5,488 additions
and
6,354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
Section "Device" | ||
# DietPi X.org config | ||
# All credits go to Rockchip: https://github.com/rockchip-linux/rk-rootfs-build/blob/master/overlay/etc/X11/xorg.conf.d/20-modesetting.conf | ||
|
||
Section "Device" | ||
Identifier "Rockchip Graphics" | ||
Driver "modesetting" | ||
Option "AccelMethod" "glamor" | ||
Option "AccelMethod" "exa" | ||
# Option "AccelMethod" "glamor" | ||
Option "DRI" "2" | ||
|
||
Option "FlipFB" "always" | ||
EndSection | ||
|
||
Section "Screen" | ||
|
||
Identifier "Default Screen" | ||
SubSection "Display" | ||
|
||
Depth 24 | ||
Modes "1920x1080" "1280x1024" "1024x768" "800x600" | ||
|
||
EndSubSection | ||
Section "Screen" | ||
Identifier "Default Screen" | ||
Device "Rockchip Graphics" | ||
Monitor "Default Monitor" | ||
EndSection | ||
|
||
### Valid values for rotation are "normal", "left", "right" | ||
Section "Monitor" | ||
Identifier "Default Monitor" | ||
Option "Rotate" "normal" | ||
EndSection |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# Provided by @Meveric's setup-odroid: http://fuzon.co.uk/meveric/pool/main/s/setup-odroid/ | ||
Section "Device" | ||
Identifier "FBTURBO" | ||
Driver "fbturbo" | ||
Option "fbdev" "/dev/fb0" | ||
|
||
Identifier "FBTurbo" | ||
Driver "fbturbo" | ||
Option "fbdev" "/dev/fb0" | ||
Option "SwapbuffersWait" "true" | ||
#Option "Rotate" "CCW" | ||
|
||
Option "SwapbuffersWait" "true" | ||
Option "alpha_swap" "true" | ||
EndSection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,23 @@ | ||
Section "Device" | ||
# DietPi X.org config | ||
# All credits go to Rockchip: https://github.com/rockchip-linux/rk-rootfs-build/blob/master/overlay/etc/X11/xorg.conf.d/20-modesetting.conf | ||
|
||
Section "Device" | ||
Identifier "Rockchip Graphics" | ||
Driver "modesetting" | ||
Option "AccelMethod" "glamor" | ||
Option "AccelMethod" "exa" | ||
# Option "AccelMethod" "glamor" | ||
Option "DRI" "2" | ||
Option "FlipFB" "always" | ||
EndSection | ||
|
||
Section "Screen" | ||
Identifier "Default Screen" | ||
Device "Rockchip Graphics" | ||
Monitor "Default Monitor" | ||
EndSection | ||
|
||
### Valid values for rotation are "normal", "left", "right" | ||
Section "Monitor" | ||
Identifier "Default Monitor" | ||
Option "Rotate" "normal" | ||
EndSection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Block public access to admin panel | ||
<Directory ~ /var/www(/html)?/admin> | ||
Require ip 127 192.168 10 172.16.0.0/12 | ||
</Directory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# If the URL starts with /admin, it is the Web interface | ||
<Directory ~ /var/www(/html)?/admin> | ||
# Create a response header for debugging using curl -I | ||
Header set X-Pi-hole "The Pi-hole Web interface is working!" | ||
Header set X-Frame-Options "deny" | ||
|
||
# Block . files from being served, such as .git, .github, .gitignore | ||
<Files ~ "^\."> | ||
Require all denied | ||
</Files> | ||
|
||
</Directory> | ||
|
||
# Block public access to blocking page | ||
<Directory ~ /var/www(/html)?/pihole> | ||
Require ip 127 192.168 10 172.16.0.0/12 | ||
</Directory> | ||
|
||
# Enable blocking page via 404 handler | ||
#ErrorDocument 404 /html/pihole/index.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Block non-LAN access to Pi-hole admin panel | ||
$HTTP["url"] =~ "^(/html)?/admin(/|$)" { | ||
$HTTP["remoteip"] !~ "^1(27|92\.168|0|72\.(1[6-9]|2[0-9]|3[0-1]))\." { | ||
url.access-deny = ("") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Based on: https://github.com/pi-hole/pi-hole/blob/master/advanced/lighttpd.conf.debian | ||
|
||
# If the URL starts with /admin, it is the Web interface | ||
$HTTP["url"] =~ "^(/html)?/admin/" { | ||
# Create a response header for debugging using curl -I | ||
setenv.add-response-header = ( | ||
"X-Pi-hole" => "The Pi-hole Web interface is working!", | ||
"X-Frame-Options" => "DENY" | ||
) | ||
|
||
$HTTP["url"] =~ "\.ttf$" { | ||
# Allow Block Page access to local fonts | ||
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" ) | ||
} | ||
} | ||
|
||
# Block . files from being served, such as .git, .github, .gitignore | ||
$HTTP["url"] =~ "^(/html)?/admin/\." { | ||
url.access-deny = ("") | ||
} | ||
|
||
# If it's a request to Pi-hole blocking page... | ||
$HTTP["url"] =~ "^(/html)?/pihole/" { | ||
# ... and the request isn't local | ||
$HTTP["remoteip"] !~ "^1(27|92\.168|0|72\.(1[6-9]|2[0-9]|3[0-1]))\." { | ||
# block! | ||
url.access-deny = ("") | ||
} | ||
} | ||
|
||
# Enable blocking page via 404 handler | ||
#server.error-handler-404 = "/html/pihole/index.php" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Block public access to Pi-hole admin panel | ||
# Location: /etc/nginx/sites-dietpi/dietpi-pihole-block_public_admin.{on,off} | ||
# - Enable with file ending .on | ||
# - Disable with file ending .off | ||
allow 127.0.0.0/8; | ||
allow 192.168.0.0/16; | ||
allow 10.0.0.0/8; | ||
allow 172.16.0.0/12; | ||
deny all; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Admin panel | ||
location ~ ^(?:/html|)/admin(?:$|/) { | ||
# Block public access to admin page, if enabled | ||
# - To enable: cd /etc/nginx/sites-dietpi; mv dietpi-pihole-block_public_admin.off dietpi-pihole-block_public_admin.on | ||
# - To disable: cd /etc/nginx/sites-dietpi; mv dietpi-pihole-block_public_admin.on dietpi-pihole-block_public_admin.off | ||
include sites-dietpi/dietpi-pihole-block_public_admin.*on; | ||
# Block . files from being served, such as .git, .github, .gitignore | ||
location ~ ^(?:/html|)/admin/\. { | ||
deny all; | ||
} | ||
# Create a response header for debugging using curl -I | ||
add_header X-Pi-hole "The Pi-hole Web interface is working!"; | ||
add_header X-Frame-Options "DENY"; | ||
# Standard PHP handler block | ||
try_files $uri $uri/ =404; | ||
location ~ ^(?:/html|)/admin/.+\.php(?:$|/) { | ||
fastcgi_pass php; | ||
include snippets/fastcgi-php.conf; | ||
} | ||
} | ||
|
||
# Blocking page | ||
location ~ ^(?:/html|)/pihole(?:$|/) { | ||
# Block public access to blocking page by default | ||
allow 127.0.0.0/8; | ||
allow 192.168.0.0/16; | ||
allow 10.0.0.0/8; | ||
allow 172.16.0.0/12; | ||
deny all; | ||
# Standard PHP handler block | ||
try_files $uri $uri/ =404; | ||
location ~ ^(?:/html|)/pihole/.+\.php(?:$|/) { | ||
fastcgi_pass php; | ||
include snippets/fastcgi-php.conf; | ||
} | ||
} | ||
|
||
# Enable blocking page via 404 handler | ||
#error_page 404 /html/pihole/index.php; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
# File Location | ||
# /etc/proftpd/proftpd.conf | ||
|
||
|
||
# Includes DSO modules | ||
Include /etc/proftpd/modules.conf | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.