You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
privatebin/etc/nginx/conf.d/privatebin.conf

25 lines
546 B

server {
listen 80 default_server;
root /var/www;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
# since I am running in Docker
resolver 127.0.0.11 ipv6=off;
set $privatebin privatebin-fpm:9000;
location ~ \.php$ {
fastcgi_pass $privatebin;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
# Prevent exposing nginx + version to $_SERVER
fastcgi_param SERVER_SOFTWARE "";
}
}