fixes
parent
545b9e7501
commit
e54c157191
|
@ -6,22 +6,23 @@ server {
|
||||||
ssl_certificate /etc/nginx/ssl/org.chain.crt;
|
ssl_certificate /etc/nginx/ssl/org.chain.crt;
|
||||||
ssl_certificate_key /etc/nginx/ssl/org.key.pem;
|
ssl_certificate_key /etc/nginx/ssl/org.key.pem;
|
||||||
|
|
||||||
root /var/www/opensis;
|
|
||||||
|
|
||||||
index index.html index.htm index.php;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ =404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ [^/]\.php(/|$) {
|
proxy_set_header Host $host;
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
||||||
fastcgi_index index.php;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
|
|
||||||
include fastcgi_params;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
fastcgi_read_timeout 300;
|
|
||||||
proxy_read_timeout 300;
|
proxy_set_header X-Frame-Options SAMEORIGIN;
|
||||||
|
|
||||||
|
proxy_pass http://localhost:6969;
|
||||||
|
|
||||||
|
proxy_read_timeout 90;
|
||||||
|
|
||||||
|
proxy_redirect http://localhost:6969 https://sis.libraryofcode.org;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue