1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00
iiab/roles/moodle/templates/moodle-nginx.conf.j2

22 lines
617 B
Text
Raw Normal View History

2021-07-01 06:19:22 +00:00
location ~ ^/moodle/dataroot/ {
2021-06-28 20:44:39 +00:00
internal;
alias {{ moodle_data }};
}
2021-07-01 06:19:22 +00:00
location ~ ^/moodle(.*)\.php(.*)$ {
alias {{ moodle_base }}$1.php$2;
include fastcgi.conf;
2021-06-28 19:09:53 +00:00
fastcgi_split_path_info ^(.+\.php)(/.+)$;
2021-06-28 20:44:39 +00:00
fastcgi_read_timeout 300;
fastcgi_pass php;
fastcgi_index index.php;
fastcgi_param PATH_INFO $fastcgi_path_info;
2021-07-01 06:19:22 +00:00
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
2021-06-29 05:34:13 +00:00
fastcgi_param PHP_VALUE "max_execution_time=300\n upload_max_filesize=500M\n post_max_size=500M\n max_input_vars=5000";
2019-10-15 17:42:04 +00:00
}
2021-07-01 06:19:22 +00:00
location ~ ^/moodle/ {
root {{ iiab_base }};
}