feat: first commit
This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@@ -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
|
||||||
12
default.conf
Normal file
12
default.conf
Normal file
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user