mirror of
https://git.nolog.cz/NoLog.cz/nginx-configurator.git
synced 2025-01-31 03:43:35 +01:00
remove unnecessary files
This commit is contained in:
parent
e31ec1de96
commit
74b9eec122
5 changed files with 0 additions and 69 deletions
20
build.sh
20
build.sh
|
@ -1,20 +0,0 @@
|
|||
#!/bin/bash
|
||||
DIR=$(mktemp -d)
|
||||
pip install -r requirements.txt --target="$DIR"
|
||||
|
||||
cp -r nginx_configurator "$DIR"
|
||||
cp -r config "$DIR"
|
||||
|
||||
#python3 -m zipapp -p "/bin/python3" -m "nginx_configurator.main:cli" -o ncc "$DIR"
|
||||
|
||||
# create entrypoint
|
||||
cat > "$DIR/ncc" <<EOF
|
||||
#!/bin/python3
|
||||
from nginx_configurator import main
|
||||
main.cli()
|
||||
EOF
|
||||
chmod +x "$DIR/ncc"
|
||||
|
||||
tar -cf ncc.tar -C "$DIR" .
|
||||
|
||||
rm -r "$DIR"
|
|
@ -1,11 +0,0 @@
|
|||
# ID: {{ id }}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
server_name <domain>; # AUTOSSL > {{ id }}
|
||||
include ssl/{{ id }}.conf;
|
||||
|
||||
return 200;
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
# ID: {{ id }}
|
||||
# Service configured by ncc
|
||||
|
||||
upstream up_{{ id }} {
|
||||
{%- for upstream in upstreams %}
|
||||
server {{ upstream }}:{{ port }};
|
||||
{%- endfor %}
|
||||
}
|
||||
|
||||
server {
|
||||
server_name{% for domain in domains %} {{ domain }}{% endfor %}; # AUTOSSL > {{ id }}
|
||||
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
# ssl
|
||||
include /etc/nginx/ssl/{{ id }}.conf;
|
||||
|
||||
# logging
|
||||
include include/logging-nolog.conf; # Change to "logging-debug" if needed
|
||||
|
||||
# gzip compression
|
||||
include include/gzip.conf;
|
||||
|
||||
# security headers
|
||||
include include/security-headers.conf;
|
||||
|
||||
# reverse proxy
|
||||
location / {
|
||||
proxy_pass {{ proto }}up_{{ id }};
|
||||
include include/proxy-headers.conf;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
ssl_certificate /etc/autossl/certs/{{ alias }}/fullchain.pem;
|
||||
ssl_certificate_key /etc/autossl/certs/{{ alias }}/privkey.pem;
|
||||
include include/ssl_defaults.conf;
|
||||
ssl_dhparam /etc/autossl/ssl-dhparams.pem;
|
Loading…
Reference in a new issue