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.
25 lines
546 B
25 lines
546 B
4 years ago
|
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 "";
|
||
|
}
|
||
|
}
|