Skip to content

Commit

Permalink
squash! Hide gitea
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulrhmnGhanem committed Jul 20, 2023
1 parent c954376 commit 6adf165
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nginx/kitspace.template
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ server {
return 200 "@KITSPACE_ROBOTS_TXT";
}

# Proxy api requests to gitea, otherwise return 404.
location ^~ /api/v1/ {
# Proxy api, and raw content requests to gitea, otherwise return 404.
location ~ ^/(api|[^/]+/[^/]+/raw)/ {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand All @@ -61,7 +61,7 @@ server {
proxy_pass http://gitea:3000;
}

location ^~ / {
location ~ / {
return 404;
}
}
Expand Down

0 comments on commit 6adf165

Please sign in to comment.