diff options
author | Sergey Lukin <sergej.lukin@gmail.com> | 2015-12-02 14:24:02 +0200 |
---|---|---|
committer | Sergey Lukin <sergej.lukin@gmail.com> | 2015-12-02 14:24:02 +0200 |
commit | e16df70255f7657f1f6c9252043976758fda08c6 (patch) | |
tree | e9381186a393b7534911ac9f3c359e87e3b849c7 /setup | |
download | build-errors-e16df70255f7657f1f6c9252043976758fda08c6.tar.bz2 build-errors-e16df70255f7657f1f6c9252043976758fda08c6.tar.xz |
initial commit
Diffstat (limited to 'setup')
-rw-r--r-- | setup | 60 |
1 files changed, 60 insertions, 0 deletions
@@ -0,0 +1,60 @@ +#!/bin/sh + +apk add nginx php-fpm php-sqlite3 sqlite3 lua lua-cjson lua-sqlite + +adduser -H -D www +chown www:www -R /usr/share/build-errors +chown -R www:www /var/spool/build-errors/sqlite +chmod +x /usr/share/build-errors/*.sh +chmod +x /usr/share/build-errors/*.lua + +ln -s mqtt-exec /etc/init.d/mqtt-exec.build-errors + +vi /etc/nginx/nginx.conf +#user www www; +#worker_processes 2; +#pid /var/run/nginx/nginx.pid; +#error_log /var/log/nginx/error.log info; +#events { +# worker_connections 1024; +#} +#http { +# include mime.types; +# default_type application/octet-stream; +# sendfile on; +# keepalive_timeout 300; +# server { +# listen 81; +# root /usr/share/build-errors/www; +# server_name localhost; +# client_max_body_size 32m; +# index index.html index.htm index.php; +# error_page 500 502 503 504 /50x.html; +# location = /50x.html { +# root /usr/share/nginx/html; +# } +# location ~ \.php$ { +# try_files $uri =404; +# fastcgi_pass unix:/run/php-fpm/php-fpm.sock; +# fastcgi_index index.php; +# include fastcgi.conf; +# } +# } +#... + +vi /etc/php/php-fpm.conf +#[global] +#error_log = /var/log/php-fpm.log +# +#[www] +#user = www +#group = www +#listen = /run/php-fpm/php-fpm.sock +#listen.owner = www +#listen.group = www +#listen.mode = 0660 +#pm = dynamic +#pm.max_children = 5 +#pm.start_servers = 2 +#pm.min_spare_servers = 1 +#pm.max_spare_servers = 3 |