mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-25 08:52:27 +08:00
Fix misskey's activitypub protocol violation from 1panel's mistake <https://akollo.2s.ink/notes/addwemgrqzn70086> <https://github.com/1Panel-dev/1Panel/issues/10566> 😂😂😂😂😂😂
21 lines
589 B
Text
21 lines
589 B
Text
server {
|
|
listen 80;
|
|
server_name ko.wp-1.com;
|
|
|
|
index index.php index.html index.htm default.php default.htm default.html;
|
|
|
|
access_log /www/sites/domain/log/access.log main;
|
|
error_log /www/sites/domain/log/error.log;
|
|
|
|
location ~ ^/(\.user.ini|\.htaccess|\.git|\.env|\.svn|\.project|LICENSE|README.md){
|
|
return 404;
|
|
}
|
|
location ^~ /.well-known/acme-challenge {
|
|
allow all;
|
|
root /usr/share/nginx/html;
|
|
}
|
|
if ( $uri ~ "^/\.well-known/.*\.(php|jsp|py|js|css|lua|ts|go|zip|tar\.gz|rar|7z|sql|bak)$" ) {
|
|
return 403;
|
|
}
|
|
|
|
}
|