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.
58 lines
1.6 KiB
58 lines
1.6 KiB
server {
|
|
listen 80;
|
|
server_name oauth2.sundayenglish.com;
|
|
index index.php index.html;
|
|
error_log /var/log/nginx/error.log;
|
|
access_log /var/log/nginx/access.log;
|
|
root /var/www/src/public;
|
|
location ~ \.php$ {
|
|
try_files $uri =404;
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass oauthgk:9000;
|
|
fastcgi_index index.php;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
}
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
root /var/www/certbot;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php$is_args$args;
|
|
gzip_static on;
|
|
}
|
|
|
|
client_max_body_size 128m;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
# listen 5421;
|
|
server_name oauth2.sundayenglish.com;
|
|
index index.php index.html;
|
|
error_log /var/log/nginx/error.log;
|
|
access_log /var/log/nginx/access.log;
|
|
root /var/www/src/public;
|
|
|
|
ssl_certificate /etc/nginx/ssl/live/oauth2.sundayenglish.com/fullchain.pem;
|
|
ssl_certificate_key /etc/nginx/ssl/live/oauth2.sundayenglish.com/privkey.pem;
|
|
|
|
location ~ \.php$ {
|
|
try_files $uri =404;
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass oauthgk:9000;
|
|
fastcgi_index index.php;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
}
|
|
location / {
|
|
add_header Access-Control-Allow-Origin *;
|
|
try_files $uri $uri/ /index.php$is_args$args;
|
|
gzip_static on;
|
|
}
|
|
|
|
client_max_body_size 128m;
|
|
}
|
|
|