-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add scripts * Updated code for the first release * Updated config
- Loading branch information
1 parent
5a72c95
commit 67581de
Showing
18 changed files
with
173 additions
and
159 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,9 +1,9 @@ | ||
#!/command/with-contenv bash | ||
|
||
if [ ! -f /etc/ssl/web/ssl.key ]; then | ||
if [ ! -f /etc/ssl/web/server.key ]; then | ||
echo "🔐 Generating a self-signed SSL certificate..." | ||
mkdir -p /etc/ssl/web/ | ||
openssl req -x509 -subj "/C=US/ST=Wisconsin/L=Milwaukee/O=IT/CN=default.test" \ | ||
-nodes -newkey rsa:2048 -keyout /etc/ssl/web/ssl.key \ | ||
-out /etc/ssl/web/ssl.crt -days 365 | ||
openssl req -x509 -subj "/C=VN/ST=Ho_Chi_Minh/L=Ho_Chi_Minh/O=AppSeeds/OU=R&D/CN=local.dev" \ | ||
-nodes -newkey rsa:2048 -keyout /etc/ssl/web/server.key \ | ||
-out /etc/ssl/web/server.crt -days 365 | ||
fi |
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,8 @@ | ||
-----BEGIN DH PARAMETERS----- | ||
MIIBCAKCAQEA//////////+t+FRYortKmq/cViAnPTzx2LnFg84tNpWp4TZBFGQz | ||
+8yTnc4kmz75fS/jY2MMddj2gbICrsRhetPfHtXV/WVhJDP1H18GbtCFY2VVPe0a | ||
87VXE15/V8k1mE8McODmi3fipona8+/och3xWKE2rec1MKzKT0g6eXq8CrGCsyT7 | ||
YdEIqUuyyOP7uWrat2DX9GgdT0Kj3jlN9K5W7edjcrsZCwenyO4KbXCeAvzhzffi | ||
7MA0BM0oNC9hkXL+nOmFg/+OTxIy7vKBg8P+OxtMb61zO7X8vC7CIAXFjvGDfRaD | ||
ssbzSibBsu/6iGtCOGEoXJf//////////wIBAg== | ||
-----END DH PARAMETERS----- |
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,9 +1,9 @@ | ||
#!/command/with-contenv bash | ||
|
||
if [ ! -f /etc/ssl/web/ssl.key ]; then | ||
if [ ! -f /etc/ssl/web/server.key ]; then | ||
echo "🔐 Generating a self-signed SSL certificate..." | ||
mkdir -p /etc/ssl/web/ | ||
openssl req -x509 -subj "/C=US/ST=Wisconsin/L=Milwaukee/O=IT/CN=default.test" \ | ||
-nodes -newkey rsa:2048 -keyout /etc/ssl/web/ssl.key \ | ||
-out /etc/ssl/web/ssl.crt -days 365 | ||
openssl req -x509 -subj "/C=VN/ST=Ho_Chi_Minh/L=Ho_Chi_Minh/O=AppSeeds/OU=R&D/CN=local.dev" \ | ||
-nodes -newkey rsa:2048 -keyout /etc/ssl/web/server.key \ | ||
-out /etc/ssl/web/server.crt -days 365 | ||
fi |
39 changes: 17 additions & 22 deletions
39
.../etc/nginx/server-opts.d/performance.conf → ...-nginx/etc/nginx/extra.d/performance.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
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,28 @@ | ||
# Set RealIP header | ||
real_ip_header CF-Connecting-IP; | ||
real_ip_recursive on; | ||
set_real_ip_from 10.0.0.0/8; | ||
set_real_ip_from 172.16.0.0/12; | ||
set_real_ip_from 192.168.0.0/16; | ||
set_real_ip_from 103.21.244.0/22; | ||
set_real_ip_from 103.22.200.0/22; | ||
set_real_ip_from 103.31.4.0/22; | ||
set_real_ip_from 104.16.0.0/13; | ||
set_real_ip_from 104.24.0.0/14; | ||
set_real_ip_from 108.162.192.0/18; | ||
set_real_ip_from 131.0.72.0/22; | ||
set_real_ip_from 141.101.64.0/18; | ||
set_real_ip_from 162.158.0.0/15; | ||
set_real_ip_from 172.64.0.0/13; | ||
set_real_ip_from 173.245.48.0/20; | ||
set_real_ip_from 188.114.96.0/20; | ||
set_real_ip_from 190.93.240.0/20; | ||
set_real_ip_from 197.234.240.0/22; | ||
set_real_ip_from 198.41.128.0/17; | ||
set_real_ip_from 2400:cb00::/32; | ||
set_real_ip_from 2405:8100::/32; | ||
set_real_ip_from 2405:b500::/32; | ||
set_real_ip_from 2606:4700::/32; | ||
set_real_ip_from 2803:f800::/32; | ||
set_real_ip_from 2a06:98c0::/29; | ||
set_real_ip_from 2c0f:f248::/32; |
1 change: 1 addition & 0 deletions
1
...inx/etc/nginx/server-opts.d/security.conf → ...fpm-nginx/etc/nginx/extra.d/security.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Block access to dot files | ||
location ~ /\.(?!well-known) { | ||
deny all; | ||
} | ||
|
Oops, something went wrong.