# listen
# server_name web01.lathwood.
# return 301
#}
#}
server
listen 443 ssl
server_name web01.lathwood.
root
index index.
ssl_certificate /etc/letsencrypt/live/web01.lathwood.uk/cert.
ssl_certificate_key /etc/letsencrypt/live/web01.lathwood.uk/privkey.
access_log
error_log
gzip
gzip_types text/css application/javascript text/javascript pplication/x-javascript text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml
location /
try_files $uri $uri/
# auth_basic
# auth_basic_user_file /etc/nginx/.
}
}
location ~ \.php
include fastcgi.
fastcgi_split_path_info ^(.+\.php)(/.
fastcgi_pass 127.0.0.
}
}
location ~ /\.ht
deny
}
}
location @librenms
rewrite api/v0(.*)$ /api_v0.php/$1
rewrite ^(.+)$ /index.php/$1
}
}
}
}