Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide gitea #563

Merged
merged 2 commits into from
Nov 13, 2023
Merged

Hide gitea #563

merged 2 commits into from
Nov 13, 2023

Conversation

AbdulrhmnGhanem
Copy link
Member

@AbdulrhmnGhanem AbdulrhmnGhanem commented Feb 16, 2023

Proxy api, and raw content requests to gitea, otherwise return 404.
The raw content is for readme images.

Closes #474.

Comment on lines +65 to +67
location ~ / {
return 404;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be taking precedence over /robots.txt. Maybe just remove the robots.txt location in the gitea server? If most things are 404 anyway then it's probably not needed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved in 2982097.

The equal sign in the location block forces an exact match
with the path requested and then stops searching for any
more matches.
@kasbah kasbah merged commit ac5c80e into master Nov 13, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hiding Gitea
2 participants