mirror of
https://git.nolog.cz/NoLog.cz/nginx-configurator.git
synced 2025-01-31 03:43:35 +01:00
fix package setup
This commit is contained in:
parent
7b36581fd0
commit
195326e8ad
4 changed files with 1 additions and 45 deletions
|
@ -1,17 +0,0 @@
|
|||
[
|
||||
{
|
||||
"name": "dummy1",
|
||||
"upstreams": [
|
||||
"10.0.0.1",
|
||||
"10.0.0.2",
|
||||
"10.0.0.3"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "dummy2",
|
||||
"upstreams": [
|
||||
"127.0.0.1",
|
||||
"127.0.0.2"
|
||||
]
|
||||
}
|
||||
]
|
|
@ -1,5 +0,0 @@
|
|||
NGINX_DIR="/etc/nginx"
|
||||
DOMAINS_TXT="/etc/autossl/domains.txt"
|
||||
DEHYDRATED_BIN="/etc/autossl/dehydrated.sh"
|
||||
REMOTE="10.0.0.1"
|
||||
REMOTE_SSH_KEY="/etc/ncc/ssh.key"
|
|
@ -1,22 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
# This hook is part of ncc. It creates a marker file on new cert deployments,
|
||||
# so that ncc knows when to reload the cluster.
|
||||
|
||||
deploy_cert() {
|
||||
touch /etc/autossl/trigger;
|
||||
}
|
||||
|
||||
deploy_ocsp() {
|
||||
touch /tmp/ncc-ssl-trigger;
|
||||
}
|
||||
|
||||
startup_hook() {
|
||||
[ -f /tmp/ncc-ssl-trigger ] && rm /tmp/ncc-ssl-trigger || true;
|
||||
}
|
||||
|
||||
fn_exists() { declare -F "$1" > /dev/null; }
|
||||
|
||||
HANDLER="$1"; shift
|
||||
if fn_exists "$HANDLER"; then
|
||||
"$HANDLER" "$@";
|
||||
fi
|
2
setup.py
2
setup.py
|
@ -3,7 +3,7 @@ from setuptools import setup
|
|||
setup(
|
||||
name='ncc',
|
||||
version='1.0.0',
|
||||
py_modules=['ncc'],
|
||||
packages=['ncc'],
|
||||
install_requires=[
|
||||
'click',
|
||||
'sysrsync',
|
||||
|
|
Loading…
Reference in a new issue