mirror of
https://github.com/linuxserver/docker-diskover.git
synced 2026-02-20 04:57:50 +08:00
Re-added nginx config until upstream is merged in
This commit is contained in:
parent
ed636a943e
commit
14ffeed72f
38
root/defaults/default
Normal file
38
root/defaults/default
Normal file
@ -0,0 +1,38 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
|
||||
listen 443 ssl;
|
||||
|
||||
root /app/www/public;
|
||||
index index.php index.html index.htm;
|
||||
|
||||
server_name _;
|
||||
|
||||
ssl_certificate /config/keys/cert.crt;
|
||||
ssl_certificate_key /config/keys/cert.key;
|
||||
|
||||
client_max_body_size 0;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
# # unless the request is for a valid file (image, js, css, etc.), send to bootstrap
|
||||
# if (!-e $request_filename)
|
||||
# {
|
||||
# rewrite ^/(.*)$ /index.php?/$1 last;
|
||||
# break;
|
||||
# }
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_index index.php;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_intercept_errors off;
|
||||
fastcgi_buffer_size 16k;
|
||||
fastcgi_buffers 4 16k;
|
||||
fastcgi_read_timeout 300;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user