You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
53 lines
1.3 KiB
server {
|
|
listen 80;
|
|
server_name khaosat.sundayenglish.com;
|
|
index index.php index.html;
|
|
error_log /var/log/nginx/error.log;
|
|
access_log /var/log/nginx/access.log;
|
|
root /usr/share/nginx/html;
|
|
server_tokens off;
|
|
|
|
uwsgi_read_timeout 600s;
|
|
proxy_connect_timeout 1800;
|
|
send_timeout 1800;
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
#allow all;
|
|
root /var/www/certbot;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php$is_args$args;
|
|
gzip_static on;
|
|
}
|
|
|
|
client_max_body_size 1024m;
|
|
}
|
|
# server {
|
|
# listen 443 default_server ssl http2;
|
|
# listen [::]:443 ssl http2;
|
|
|
|
# server_name khaosat.sundayenglish.com;
|
|
|
|
# ssl_certificate /etc/nginx/ssl/live/khaosat.sundayenglish.com/fullchain.pem;
|
|
# ssl_certificate_key /etc/nginx/ssl/live/khaosat.sundayenglish.com/privkey.pem;
|
|
|
|
|
|
# index index.php index.html;
|
|
# error_log /var/log/nginx/error.log;
|
|
# access_log /var/log/nginx/access.log;
|
|
# root /usr/share/nginx/html;
|
|
|
|
# uwsgi_read_timeout 600s;
|
|
# # proxy_read_timeout 1800;
|
|
# proxy_connect_timeout 1800;
|
|
# #proxy_send_timeout 1800;
|
|
# send_timeout 1800;
|
|
|
|
# location / {
|
|
# try_files $uri $uri/ /index.php$is_args$args;
|
|
# gzip_static on;
|
|
# }
|
|
|
|
# client_max_body_size 1024m;
|
|
# } |