Browse Source

fix: pid file of php-fpm; add ipv6 for nginx

master
dnomd343 2 years ago
parent
commit
b547e8e404
  1. 3
      Dockerfile
  2. 2
      main.php
  3. 1
      nginx/kms.conf
  4. 4
      nginx/nginx.conf

3
Dockerfile

@ -23,6 +23,9 @@ RUN sed -i '/blahblah/i\return 0;' config.m4 && \
FROM alpine:3.16 AS asset
COPY --from=iconv /iconv/ /asset/usr/
COPY --from=vlmcsd /tmp/vlmcs* /asset/usr/bin/
RUN apk add php8-fpm && mkdir -p /asset/etc/php8/ && \
sed -i 's/^;\(pid\)/\1/' /etc/php8/php-fpm.conf && \
mv /etc/php8/php-fpm.conf /asset/etc/php8/
COPY . /asset/kms-server/
RUN mkdir -p /asset/etc/ && mv /asset/kms-server/nginx/ /asset/etc/

2
main.php

@ -9,7 +9,7 @@ require_once './src/Process.php';
$nginx = array(
'name' => 'nginx',
'command' => ['/usr/sbin/nginx'],
'pidFile' => '/run/nginx/nginx.pid',
'pidFile' => '/run/nginx.pid',
);
$phpFpm = array(

1
nginx/kms.conf

@ -1,5 +1,6 @@
server {
listen 1689;
listen [::]:1689 ipv6only=on;
root /kms-server;
location / {

4
nginx/nginx.conf

@ -1,6 +1,8 @@
user nginx;
worker_processes auto;
pcre_jit on;
pid /run/nginx.pid;
worker_processes auto;
include /etc/nginx/modules/*.conf;
events {

Loading…
Cancel
Save