mirror of
https://github.com/linuxserver/docker-librespeed.git
synced 2026-01-18 10:45:11 +08:00
32 lines
674 B
Plaintext
32 lines
674 B
Plaintext
## Version 2020/01/06 - Changelog: https://github.com/linuxserver/docker-librespeed/commits/master/root/defaults/default
|
|
|
|
server {
|
|
listen 80 default_server;
|
|
|
|
listen 443 ssl;
|
|
|
|
root /usr/share/webapps/librespeed;
|
|
index index.php index.html index.htm;
|
|
|
|
real_ip_header X-Forwarded-For;
|
|
set_real_ip_from 172.17.0.0/16;
|
|
|
|
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.html;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
fastcgi_index index.php;
|
|
include /etc/nginx/fastcgi_params;
|
|
}
|
|
}
|