mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-31 07:11:33 +00:00
Merge pull request #111 from NadyaNayme/better-nginx-settings
Small nginx.config improvements
This commit is contained in:
commit
0f66d74683
@ -2,6 +2,10 @@ 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;
|
||||
@ -14,6 +18,7 @@ server {
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
server_name lolisafe.moe;
|
||||
server_tokens off;
|
||||
|
||||
ssl_certificate /path/to/your/fullchain.pem;
|
||||
ssl_certificate_key /path/to/your/privkey.pem;
|
||||
@ -21,6 +26,9 @@ server {
|
||||
|
||||
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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user