IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Procházet zdrojové kódy

Extra limits on settings in forked repos.

master
Stanislaw Adaszewski před 4 roky
rodič
revize
8f2c8aa3b2
1 změnil soubory, kde provedl 12 přidání a 2 odebrání
  1. +12
    -2
      example/gitea-disable/files/nginx.conf

+ 12
- 2
example/gitea-disable/files/nginx.conf Zobrazit soubor

@@ -12,15 +12,25 @@ http {
listen 80;
location / {
error_page 403 /403.html;
rewrite ^/admin1/ $uri break;
if ($uri ~ ^/([^/]*)/([^/]*)/(wiki|releases|issues)) {
return 403;
}
rewrite ^/([^/]*)/([^/]*)/settings/(collaboration|branches) $uri break;
if ($uri ~ ^/([^/]*)/([^/]*)/settings) {
set $test "settings";
}
if ($request_method = "POST") {
set $test "${test}_post";
}
if ($test = "settings_post") {
return 403;
}
root /usr/local/share/gitea/public;
error_page 403 /403.html;
proxy_pass http://localhost:3000/;
}
}


Načítá se…
Zrušit
Uložit