You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
801 B
Plaintext
39 lines
801 B
Plaintext
# /etc/nginx/sites-enabled/default
|
|
|
|
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=bizappcache:20m max_size=1g inactive=24h use_temp_path=off;
|
|
|
|
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
|
|
root /var/www/html;
|
|
|
|
index index.php index.html index.htm index.nginx-debian.html;
|
|
|
|
server_name _;
|
|
|
|
# Accelerator
|
|
location /accelerator {
|
|
# Don't allow access from CJDNS, closes possible DoS/security hole
|
|
deny fc00::/8;
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
# PHP-FPM
|
|
location ~ \.php$ {
|
|
include snippets/fastcgi-php.conf;
|
|
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
|
|
}
|
|
|
|
# Caching proxy
|
|
location ^~ / {
|
|
proxy_cache bizappcache;
|
|
proxy_pass https://test.netsyms.biz/;
|
|
add_header X-Cache-Status $upstream_cache_status;
|
|
}
|
|
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
}
|