Skip to content

Commit 5022569

Browse files
authored
Fix gitea ssl (hestiacp#4012)
1 parent c086719 commit 5022569

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

install/deb/templates/web/nginx/php-fpm/gitea.stpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ server {
2424

2525
include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*;
2626

27-
location ~ /.well-known {
28-
allow all;
27+
location ~ /\.(?!well-known\/) {
28+
deny all;
29+
return 404;
2930
}
3031

3132
location / {

install/deb/templates/web/nginx/php-fpm/gitea.tpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ server {
1515
1616
include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*;
1717
18-
location ~ /.well-known {
19-
allow all;
18+
location ~ /\.(?!well-known\/) {
19+
deny all;
20+
return 404;
2021
}
2122

2223
location / {

0 commit comments

Comments
 (0)