Commit 16820fd2 authored by Aaron Yildiztas's avatar Aaron Yildiztas
Browse files

added webproxy2

parent fd0e35c4
FROM ubuntu
LABEL maintainer="Aaron Yildiztas (yildiztasmusa@gmail.com)"
RUN apt-get update && apt-get install -y nginx
EXPOSE 80
ENTRYPOINT ["/usr/sbin/nginx", "-g", "daemon off;"]
\ No newline at end of file
version: '3'
services:
proxy:
build: .
ports:
- '80:80'
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
web:
image: httpd
\ No newline at end of file
server {
listen 80;
location / {
proxy_pass http://web;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment