remove unnecessary files

This commit is contained in:
bain 2024-11-04 22:27:40 +01:00
parent e31ec1de96
commit 74b9eec122
Signed by: bain
GPG key ID: 31F0F25E3BED0B9B
5 changed files with 0 additions and 69 deletions

View file

@ -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"

View file

@ -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;
}

View file

@ -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;
}
}

View file

@ -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;