diff options
| author | Nadya <[email protected]> | 2018-05-19 00:57:19 -0700 |
|---|---|---|
| committer | Nadya <[email protected]> | 2018-05-19 00:57:19 -0700 |
| commit | 30e460b7f8ba3765301d9f3eb9e93e06ca931940 (patch) | |
| tree | 181bf0153559e738b14439ce2fb0eca7dff41cce /nginx.sample.conf | |
| parent | Merge pull request #107 from NadyaNayme/Album-Delete (diff) | |
| download | host.fuwn.me-30e460b7f8ba3765301d9f3eb9e93e06ca931940.tar.xz host.fuwn.me-30e460b7f8ba3765301d9f3eb9e93e06ca931940.zip | |
Improve nginx defaults
Don't send nginx version in headers and serve all text/* as utf-8
Diffstat (limited to 'nginx.sample.conf')
| -rw-r--r-- | nginx.sample.conf | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nginx.sample.conf b/nginx.sample.conf index c702eb2..3bfefe9 100644 --- a/nginx.sample.conf +++ b/nginx.sample.conf @@ -2,14 +2,22 @@ upstream backend { server 127.0.0.1:9999; # Change to the port you specified on lolisafe } +map $sent_http_content_type $charset { + ~^text/ utf-8; +} + server { listen 80; listen [::]:80; server_name lolisafe.moe; + server_tokens off; client_max_body_size 100M; # Change this to the max file size you want to allow + charset $charset; + charset_type *; + # Uncomment if you are running lolisafe behind CloudFlare. # This requires NGINX compiled from source with: # --with-http_realip_module |