8000 Remove unauthenticated /tmp/ location exposing ~/Downloads in nginx config by SimonB3 · Pull Request #2 · initab/micronomy · GitHub
[go: up one dir, main page]

Skip to content

Remove unauthenticated /tmp/ location exposing ~/Downloads in nginx config - #2

Open
SimonB3 wants to merge 1 commit into
masterfrom
fix_exposed_downloads_nginx_location
Open

SimonB3 wants to merge 1 commit into
masterfrom
fix_exposed_downloads_nginx_location

Conversation

@SimonB3
@SimonB3 SimonB3 commented Sep 18, 2026
Copy link
Copy Markdown

Problem

resources/nginx.conf (in the micronomy.jonaseel.se server block) contained:

location ~ ^/tmp/ {
    root /home/jonas/Downloads/;
}

This served files from the operator's personal ~/Downloads/tmp/ directory on the same public domain and nginx process as the production time-registration app, with no authentication of any kind. It appears to be a leftover ad-hoc file-sharing hack that ended up committed into the production reverse-proxy config.

Fix

Removed the location ~ ^/tmp/ { ... } block entirely — it has nothing to do with the Micronomy application.

Testing

No application code was touched, so no unit test applies. Validated the config with nginx -t (using the repo's own resources/fake-tls cert/key mounted at the expected paths, purely to satisfy nginx's certificate-existence check) — passed:

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

git diff confirms only the four lines of the unrelated /tmp/ block were removed; the app's own routes and the other server blocks are untouched.

🤖 Generated with Claude Code

… config

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.

1 participant

0