-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml
52 lines (48 loc) · 1.3 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: nginx
version: 10
vendor: Leon Liao <[email protected]>
summary: small, powerful, scalable web/proxy server
description: Nginx ("engine X") is a high-performance web and reverse proxy server created by Igor Sysoev. It can be used both as a standalone web server and as a proxy to reduce the load on back-end HTTP or mail servers.
icon: nginx.png
services:
nginx:
caps:
- networking
- network-service
syscalls:
- chown
- chown32
- close
- setgid
start: "./sbin/nginx"
security-template: unconfined
# security-policy:
# apparmor: meta/apparmor.profile
# seccomp: meta/nginx.filter
parts:
main:
plugin: myautotools
source: https://github.com/nginx/nginx.git
#source: /home/ubuntu/git/nginx.git
source-type: git
source-tag: release-1.9.5
configflags:
- --without-http_rewrite_module
- --without-http_gzip_module
- --error-log-path=logs/error.log
- --http-log-path=logs/nginx.log
build-packages:
- libc6
- libgd3
- libgeoip1
- libpcre3
- libssl1.0.0
- libxml2
- libxslt1.1
- zlib1g
service:
plugin: copy
files:
nginx.sh: bin/nginx.sh
client_body_temp: client_body_temp
error.log: logs/error.log