From fe2058d549c5f8c499b33fa20f508e5e6badee3b Mon Sep 17 00:00:00 2001 From: Stanislaw Adaszewski Date: Sun, 3 May 2020 08:36:16 +0200 Subject: [PATCH] Fix for 403 on . --- example/gitea-disable/files/403.html | 2 +- example/gitea-disable/files/nginx.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/example/gitea-disable/files/403.html b/example/gitea-disable/files/403.html index ac4a0b0..f3a8177 100644 --- a/example/gitea-disable/files/403.html +++ b/example/gitea-disable/files/403.html @@ -7,7 +7,7 @@

403 Forbidden

-

Issues, Releases and Wiki are disabled for forked repositories. Please use the source repository for those.

+

Issues, Releases, Wiki and some settings are disabled for forked repositories. Please use the source repository for those.

Go Back

diff --git a/example/gitea-disable/files/nginx.conf b/example/gitea-disable/files/nginx.conf index 48a2708..c55bdc9 100644 --- a/example/gitea-disable/files/nginx.conf +++ b/example/gitea-disable/files/nginx.conf @@ -14,6 +14,7 @@ http { location / { error_page 403 /403.html; + set $test ""; if ($uri ~ ^/api) { set $test "api"; }