Skip to content
This repository was archived by the owner on Jun 7, 2024. It is now read-only.

Commit f942545

Browse files
committed
anti PLoC
1 parent 3dbf353 commit f942545

8 files changed

+15
-0
lines changed

anti-floc.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# /etc/nginx/snippets/anti-floc.conf
2+
add_header Permissions-Policy interest-cohort=();

archive.fastgit.org.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ server {
3030

3131
error_page 497 https://$host$request_uri;
3232

33+
include /etc/nginx/snippets/anti-floc.conf;
34+
3335
# SSL
3436
location ~ \.well-known{
3537
allow all;

assets.fastgit.org.conf

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

2525
error_page 497 https://$host$request_uri;
2626

27+
include /etc/nginx/snippets/anti-floc.conf;
28+
2729
# SSL
2830
location ~ \.well-known {
2931
allow all;

download.fastgit.org.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ server {
3030

3131
error_page 497 https://$host$request_uri;
3232

33+
include /etc/nginx/snippets/anti-floc.conf;
34+
3335
# SSL
3436
location ~ \.well-known{
3537
allow all;

fastgit.org.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ server {
2626
ssl_session_timeout 60m;
2727
ssl_session_tickets off;
2828

29+
include /etc/nginx/snippets/anti-floc.conf;
30+
2931
location / {
3032
try_files $uri $uri/ =404;
3133
}

hub.fastgit.org.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ server {
3030
client_max_body_size 2G;
3131
error_page 497 https://$host$request_uri;
3232

33+
include /etc/nginx/snippets/anti-floc.conf;
34+
3335
# SSL
3436
location ~ \.well-known {
3537
allow all;

install-debian10.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ echo "[I] Install confs"
5353
cd nginx-conf
5454

5555
cp *.conf /etc/nginx/sites-enabled
56+
mv /etc/nginx/sites-enabled/anti-floc.conf /etc/nginx/snippets/anti-floc.conf
5657

5758
mkdir -p /www/wwwroot/fg
5859
mkdir -p /www/wwwlogs

raw.fastgit.org.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ server {
2929

3030
error_page 497 https://$host$request_uri;
3131

32+
include /etc/nginx/snippets/anti-floc.conf;
33+
3234
# SSL
3335
location ~ \.well-known {
3436
allow all;

0 commit comments

Comments
 (0)