41 lines
932 B
Plaintext
41 lines
932 B
Plaintext
|
server {
|
||
|
listen 80;
|
||
|
listen [::]:80;
|
||
|
|
||
|
server_name editor.r3js.org;
|
||
|
|
||
|
return 301 https://editor.r3js.org$request_uri;
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
|
||
|
listen 443 ssl;
|
||
|
listen [::]:443;
|
||
|
|
||
|
server_name editor.r3js.org;
|
||
|
|
||
|
ssl_certificate /etc/letsencrypt/live/editor.r3js.org/fullchain.pem;
|
||
|
ssl_certificate_key /etc/letsencrypt/live/editor.r3js.org/privkey.pem;
|
||
|
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||
|
|
||
|
root /usr/share/cybafelo/editor.r3js.org/webroot/;
|
||
|
index index.php;
|
||
|
|
||
|
access_log /var/log/editor.r3js.org/access.log;
|
||
|
error_log /var/log/editor.r3js.org/error.log;
|
||
|
|
||
|
location / {
|
||
|
try_files $uri $uri/ /index.php?$args;
|
||
|
}
|
||
|
|
||
|
location ~ \.php$ {
|
||
|
try_files $uri =404;
|
||
|
include fastcgi_params;
|
||
|
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
|
||
|
fastcgi_index index.php;
|
||
|
fastcgi_intercept_errors on;
|
||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||
|
}
|
||
|
}
|