The original post: /r/nginx by /u/LucasRey on 2024-07-26 04:23:02.
Hello, some days ago I instantiate my first nginx server at home on Ubuntu 24.04 LTS. It’s used as reverse proxy for my home services (e.g. immich, nextcloud, authentik, etc…). Now I’m surfing on official documentation, and around on the web, to study how to tweek it. Performance and security is my priority.
I found several directives to add to the config, what is not clear to me is where to add those settings.
Just as example, this: server_tokens off;
will minimizing the amount of data that is revealed to potential attackers
Now, where I have to configure such values (and others)? At main config? /etc/nginx/nginx.conf
Or on each available sites under /etc/nginx/sites-enabled/
?
Thank you
Lucas
You must log in or register to comment.