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.
82 lines
1.9 KiB
82 lines
1.9 KiB
# server {
|
|
# listen 80;
|
|
# listen [::]:80;
|
|
# server_name gkcorp.dev.sundayenglish.com;
|
|
|
|
# #access_log /var/log/nginx/host.access.log main;
|
|
# location /.well-known/acme-challenge/ {
|
|
# root /var/www/certbot;
|
|
# allow all;
|
|
# }
|
|
# location / {
|
|
# root /usr/share/nginx/html;
|
|
# index index.html index.htm;
|
|
# }
|
|
|
|
# #error_page 404 /404.html;
|
|
|
|
# # redirect server error pages to the static page /50x.html
|
|
# #
|
|
# location / {
|
|
# try_files $uri $uri/ /index.php$is_args$args;
|
|
# gzip_static on;
|
|
# }
|
|
# error_page 500 502 503 504 /50x.html;
|
|
# location = /50x.html {
|
|
# root /usr/share/nginx/html;
|
|
# }
|
|
|
|
# }
|
|
server {
|
|
listen 80;
|
|
server_name gkcorp.dev.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 sunday.local;
|
|
|
|
ssl_certificate /etc/nginx/ssl/live/gkcorp.com.vn/fullchain.pem;
|
|
ssl_certificate_key /etc/nginx/ssl/live/gkcorp.com.vn/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;
|
|
} |