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!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
798B

  1. worker_processes 1;
  2. events {
  3. worker_connections 1024;
  4. }
  5. http {
  6. include mime.types;
  7. default_type application/octet-stream;
  8. server {
  9. listen 80;
  10. location / {
  11. error_page 403 /403.html;
  12. rewrite ^/admin1/ $uri break;
  13. if ($uri ~ ^/([^/]*)/([^/]*)/(wiki|releases|issues)) {
  14. return 403;
  15. }
  16. rewrite ^/([^/]*)/([^/]*)/settings/(collaboration|branches) $uri break;
  17. if ($uri ~ ^/([^/]*)/([^/]*)/settings) {
  18. set $test "settings";
  19. }
  20. if ($request_method = "POST") {
  21. set $test "${test}_post";
  22. }
  23. if ($test = "settings_post") {
  24. return 403;
  25. }
  26. root /usr/local/share/gitea/public;
  27. proxy_pass http://localhost:3000/;
  28. }
  29. }
  30. }