Delete pdns-admin-static directory

This directory contains legacy version of pdns admin frontend.
This commit is contained in:
Peter Schiffer 2021-10-05 23:01:23 +02:00 committed by GitHub
parent 0b210f27a2
commit 540d21dab6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 42 deletions

View file

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

View file

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