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.

42 lines
833 B

server {
listen 80 default_server;
server_name _;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
large_client_header_buffers 4 32k;
client_max_body_size 200M;
charset utf-8;
root /opt/rainloop;
index index.php;
# deny access to .htaccess files
location ~ /\.ht {
deny all;
}
# rainloop standard security
location ^~ /data {
deny all;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# since I am running in Docker
resolver 127.0.0.11 ipv6=off;
set $rainloop rainloop-fpm:9000;
location ~ \.php$ {
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_keep_conn on;
include fastcgi_params;
fastcgi_pass $rainloop;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}