2018-01-02 11:19:00 +01:00
|
|
|
user nginx;
|
|
|
|
pid /run/nginx.pid;
|
|
|
|
worker_processes 1;
|
|
|
|
error_log /dev/stderr warn;
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
include mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
access_log off;
|
|
|
|
server_tokens off;
|
|
|
|
client_max_body_size 100m;
|
|
|
|
sendfile on;
|
|
|
|
|
|
|
|
server {
|
2018-03-25 23:12:13 +02:00
|
|
|
listen 8080;
|
2018-01-02 11:19:00 +01:00
|
|
|
server_name localhost;
|
|
|
|
|
|
|
|
root /srv/kanboard;
|
|
|
|
index index.php;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ /index.php$is_args$args;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~ \.php$ {
|
|
|
|
try_files $uri =404;
|
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
|
|
fastcgi_pass unix:/var/run/kanboard.sock;
|
|
|
|
fastcgi_index index.php;
|
|
|
|
include fastcgi_params;
|
2018-02-02 21:04:12 +01:00
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
fastcgi_param HTTP_HOST $http_x_forwarded_host if_not_empty;
|
2018-04-29 20:51:20 +02:00
|
|
|
fastcgi_param HTTPS "on";
|
|
|
|
fastcgi_param REQUEST_SCHEME "https";
|
2018-02-02 21:04:12 +01:00
|
|
|
fastcgi_param SERVER_NAME $http_x_forwarded_server_name if_not_empty;
|
|
|
|
fastcgi_param SERVER_PORT $http_x_forwarded_server_port if_not_empty;
|
2018-01-02 11:19:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
location ~* ^.+\.(log|sqlite)$ {
|
|
|
|
return 404;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~ /\.ht {
|
|
|
|
return 404;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~* ^.+\.(ico|jpg|gif|png|css|js|svg|eot|ttf|woff|woff2|otf)$ {
|
|
|
|
log_not_found off;
|
|
|
|
expires 7d;
|
|
|
|
etag on;
|
|
|
|
}
|
|
|
|
|
|
|
|
gzip on;
|
|
|
|
gzip_comp_level 3;
|
|
|
|
gzip_disable "msie6";
|
|
|
|
gzip_vary on;
|
|
|
|
gzip_types text/javascript application/javascript application/json text/xml application/xml application/rss+xml text/css text/plain;
|
|
|
|
}
|
|
|
|
}
|