From a2ddd7d76f456f111aade3f454f879f229bc3f85 Mon Sep 17 00:00:00 2001 From: ALittlePatate Date: Thu, 30 Jan 2025 10:33:58 +0100 Subject: [PATCH] feat: first commit --- Dockerfile | 11 +++++++++++ default.conf | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 Dockerfile create mode 100644 default.conf diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e357054 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM harshitbudhraja/tor-nginx-proxy + +LABEL name="custom-tor-nginx-proxy" +LABEL version="1.0.1" +LABEL maintainer="patate" + +COPY default.conf /etc/nginx/conf.d/default.conf + +RUN nginx -t + +EXPOSE 80 diff --git a/default.conf b/default.conf new file mode 100644 index 0000000..fbc30ff --- /dev/null +++ b/default.conf @@ -0,0 +1,12 @@ +server { + listen ${NGINX_PORT}; + + location / { + proxy_pass ${NGINX_PROXY_URL}; + proxy_set_header Host patate.dev; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection upgrade; + proxy_set_header Accept-Encoding gzip; + } +} \ No newline at end of file