mirror of
https://github.com/ivabus/pantry
synced 2024-09-20 00:30:48 +03:00
+nginx.org (#417)
* +nginx.org * add comment re: pcre2 * fix test case * fix test case * nginx test relocatable * nginx test relocatable * change nginx port to 8080 for test * fix darwin test
This commit is contained in:
parent
736bb7cfe6
commit
c750f56954
31
projects/nginx.org/nginx.conf
Normal file
31
projects/nginx.org/nginx.conf
Normal file
|
@ -0,0 +1,31 @@
|
|||
daemon off;
|
||||
worker_processes 2;
|
||||
user www-data;
|
||||
|
||||
events {
|
||||
use epoll;
|
||||
worker_connections 128;
|
||||
}
|
||||
|
||||
error_log logs/error.log info;
|
||||
|
||||
http {
|
||||
server_tokens off;
|
||||
include mime.types;
|
||||
charset utf-8;
|
||||
|
||||
access_log logs/access.log combined;
|
||||
|
||||
server {
|
||||
server_name localhost;
|
||||
listen 127.0.0.1:80;
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
|
||||
location / {
|
||||
root html;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
34
projects/nginx.org/package.yml
Normal file
34
projects/nginx.org/package.yml
Normal file
|
@ -0,0 +1,34 @@
|
|||
distributable:
|
||||
url: https://nginx.org/download/nginx-{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: nginx/nginx/tags # reads github tags from github
|
||||
strip: /^release-/
|
||||
|
||||
dependencies:
|
||||
pcre.org: 8.45 # switch to pcre.org/pcre2 once it's available
|
||||
zlib.net: ^1.2.13
|
||||
openssl.org: ^1.1.1k
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
script: |
|
||||
./configure $ARGS
|
||||
make --jobs {{ hw.concurrency }}
|
||||
make install
|
||||
env:
|
||||
ARGS:
|
||||
- --prefix={{prefix}}
|
||||
- --with-http_ssl_module
|
||||
- --with-stream
|
||||
|
||||
provides:
|
||||
- sbin/nginx
|
||||
|
||||
test:
|
||||
script: |
|
||||
sed -i.bak -e 's/80/8080/g' {{prefix}}/conf/nginx.conf
|
||||
nginx -p {{prefix}} -c {{prefix}}/conf/nginx.conf -t
|
Loading…
Reference in a new issue