From 540d21dab6aad4def11577cf6edf6be31a76a93c Mon Sep 17 00:00:00 2001 From: Peter Schiffer <3899107+pschiffe@users.noreply.github.com> Date: Tue, 5 Oct 2021 23:01:23 +0200 Subject: [PATCH] Delete pdns-admin-static directory This directory contains legacy version of pdns admin frontend. --- pdns-admin-static/Dockerfile | 11 ----------- pdns-admin-static/pdns-nginx.conf | 31 ------------------------------- 2 files changed, 42 deletions(-) delete mode 100644 pdns-admin-static/Dockerfile delete mode 100644 pdns-admin-static/pdns-nginx.conf diff --git a/pdns-admin-static/Dockerfile b/pdns-admin-static/Dockerfile deleted file mode 100644 index 468168c..0000000 --- a/pdns-admin-static/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM nginx:1.14-alpine - -RUN apk add --no-cache curl - -RUN mkdir -p /opt/powerdns-admin \ - && curl -sSL https://git.0x97.io/0x97/powerdns-admin/repository/master/archive.tar.gz \ - | tar -xzC /opt/powerdns-admin --strip 1 \ - && find /opt/powerdns-admin -path /opt/powerdns-admin/app/static -prune -o -type f -exec rm -f {} + \ - && chown -R root: /opt/powerdns-admin - -COPY pdns-nginx.conf /etc/nginx/conf.d/default.conf diff --git a/pdns-admin-static/pdns-nginx.conf b/pdns-admin-static/pdns-nginx.conf deleted file mode 100644 index 3221b85..0000000 --- a/pdns-admin-static/pdns-nginx.conf +++ /dev/null @@ -1,31 +0,0 @@ -server { - listen 80; - server_name localhost; - - location /static/ { - alias /opt/powerdns-admin/app/static/; - } - - location / { - try_files $uri @pdns_admin; - } - - location @pdns_admin { - include uwsgi_params; - uwsgi_pass pdns-admin-uwsgi:9494; - } - - # redirect server error pages to the static page /50x.html - # - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - } - - # deny access to .htaccess files, if Apache's document root - # concurs with nginx's one - # - location ~ /\.ht { - deny all; - } -}