nginx.conf out

Signed-off-by: ale <ale@manalejandro.com>
This commit is contained in:
ale 2024-11-18 22:05:57 +01:00
parent 6bd9449729
commit 004a8b5d93
Signed by: ale
GPG Key ID: 244A9C4DAB1C0C81
2 changed files with 2 additions and 37 deletions

View File

@ -1,4 +1,5 @@
FROM nginx
RUN apt update && apt install -y git && apt clean
RUN git clone --depth 1 https://github.com/TuxInvader/nginx-dns /etc/nginx/nginx-dns
COPY nginx.conf dns.conf domains.txt domains_v6.txt /etc/nginx/
RUN echo "include /etc/nginx/dns.conf" >> /etc/nginx/nginx.conf
COPY dns.conf domains.txt domains_v6.txt /etc/nginx/

View File

@ -1,36 +0,0 @@
load_module modules/ngx_stream_js_module.so;
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
}
stream {
include /etc/nginx/dns.conf;
}