mirror of https://github.com/dnomd343/kms-server
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.
19 lines
444 B
19 lines
444 B
server {
|
|
listen 1689;
|
|
listen [::]:1689 ipv6only=on;
|
|
|
|
location /assets {
|
|
root /kms-server;
|
|
}
|
|
|
|
location / {
|
|
include kms_params;
|
|
include fastcgi_params;
|
|
fastcgi_pass unix:/run/php-fpm.sock;
|
|
if ($http_user_agent ~* (curl|wget)) {
|
|
set $cli_mode "true";
|
|
}
|
|
fastcgi_param KMS_CLI $cli_mode;
|
|
fastcgi_param SCRIPT_FILENAME /kms-server/src/Route.php;
|
|
}
|
|
}
|
|
|