mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +00:00
Mirrored nginx.sample.conf
This commit is contained in:
parent
d7c792fa8a
commit
35da812a01
@ -7,9 +7,6 @@ server {
|
|||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name lolisafe.moe;
|
server_name lolisafe.moe;
|
||||||
return 301 https://$server_name$request_uri;
|
return 301 https://$server_name$request_uri;
|
||||||
|
|
||||||
# Uncomment if you are running lolisafe behind CloudFlare.
|
|
||||||
#include /path/to/lolisafe/cloudflare-ips;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
@ -25,7 +22,9 @@ server {
|
|||||||
client_max_body_size 100M; # Change this to the max file size you want to allow
|
client_max_body_size 100M; # Change this to the max file size you want to allow
|
||||||
|
|
||||||
# Uncomment if you are running lolisafe behind CloudFlare.
|
# Uncomment if you are running lolisafe behind CloudFlare.
|
||||||
#include /path/to/lolisafe/cloudflare-ips;
|
# This requires NGINX compiled from source with:
|
||||||
|
# --with-http_realip_module
|
||||||
|
#include /path/to/lolisafe/real-ip-from-cf;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
add_header Access-Control-Allow-Origin *;
|
add_header Access-Control-Allow-Origin *;
|
||||||
|
Loading…
Reference in New Issue
Block a user