diff options
Diffstat (limited to '')
-rw-r--r-- | templates/common/hosts | 2 | ||||
-rw-r--r-- | templates/nagios/conf.d/hostgroups.cfg | 1 | ||||
-rw-r--r-- | templates/nagios/conf.d/ipam.adyxax.org.cfg | 6 | ||||
-rw-r--r-- | templates/nginx/ipam_nginx.conf | 62 |
4 files changed, 70 insertions, 1 deletions
diff --git a/templates/common/hosts b/templates/common/hosts index de9217c..0f5225b 100644 --- a/templates/common/hosts +++ b/templates/common/hosts @@ -14,7 +14,7 @@ ff02::2 ip6-allrouters 10.1.0.101 weechat_relay.jail weechat_relay 10.1.0.200 tiddlywiki.jail tiddlywiki -10.1.0.201 phpipam.lxd phpipam +10.1.0.201 ipam.jail ipam 10.1.0.202 check_mk.lxd check_mk 10.1.0.203 miniflux.lxd miniflux 10.1.0.204 hub.lxd hub diff --git a/templates/nagios/conf.d/hostgroups.cfg b/templates/nagios/conf.d/hostgroups.cfg index 636bc5a..b592eb7 100644 --- a/templates/nagios/conf.d/hostgroups.cfg +++ b/templates/nagios/conf.d/hostgroups.cfg @@ -9,5 +9,6 @@ define hostgroup { alias FreeBSD Jails members console.adyxax.org, \ git.adyxax.org, \ + ipam.adyxax.org, \ nagios.adyxax.org } diff --git a/templates/nagios/conf.d/ipam.adyxax.org.cfg b/templates/nagios/conf.d/ipam.adyxax.org.cfg new file mode 100644 index 0000000..9391ac6 --- /dev/null +++ b/templates/nagios/conf.d/ipam.adyxax.org.cfg @@ -0,0 +1,6 @@ +define host { + use freebsd-server + host_name ipam.adyxax.org + address ipam.jail + parents cobsd.adyxax.org +} diff --git a/templates/nginx/ipam_nginx.conf b/templates/nginx/ipam_nginx.conf new file mode 100644 index 0000000..fe703ef --- /dev/null +++ b/templates/nginx/ipam_nginx.conf @@ -0,0 +1,62 @@ +worker_processes 1; + +# This default error log path is compiled-in to make sure configuration parsing +# errors are logged somewhere, especially during unattended boot when stderr +# isn't normally logged anywhere. This path will be touched on every nginx +# start regardless of error log location configured here. See +# https://trac.nginx.org/nginx/ticket/147 for more info. +# +#error_log /var/log/nginx/error.log; + +events { + worker_connections 1024; +} + +http { + include mime.types; + default_type application/octet-stream; + + sendfile on; + keepalive_timeout 65; + gzip on; + + server { + listen 80; + server_name localhost; + + root /var/www/phpipam/; + + location ~ ^/(favicon.ico|robots.txt)$ { + access_log off; + expires max; + } + location ~ ^/(api/controllers|api/README|app|db|functions|install|misc|upgrade|INSTALL.txt|README|UPDATE)$ { + deny all; + access_log off; + log_not_found off; + } + location /nginx_status { stub_status on; access_log off; allow 127.0.0.1; deny all; } + + location / { + index index.php; + try_files $uri $uri/ index.php; + } + + #error_page 404 /404.html; + + # redirect server error pages to the static page /50x.html + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/local/www/nginx-dist; + } + location ~ \.php$ { + fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; + fastcgi_index index.php; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + fastcgi_pass_header Authorization; + } + } +} + |