Skip to content

Commit

Permalink
draft for #79 added
Browse files Browse the repository at this point in the history
  • Loading branch information
mStirner committed Feb 16, 2023
1 parent a181238 commit 1f447fe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ ENV NGINX_HOSTNAME="open-haus.lan, open-haus.local"
ENV BACKEND_PROTOCOL="http"
ENV BACKEND_HOST="127.0.0.1"
ENV BACKEND_PORT="8080"
#ENV ADMIN_PROTOCOL="http"
#ENV ADMIN_HOST="127.0.0.1"
#ENV ADMIN_PORT="3001"
ENV RESOLVER="127.0.0.11"

ARG version=unknown
Expand Down
15 changes: 14 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,20 @@ server {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}


# location /admin {
# resolver ${RESOLVER};
# proxy_pass ${ADMIN_PROTOCOL}://${ADMIN_HOST}:${ADMIN_PORT};
# proxy_http_version 1.1;
# proxy_set_header X-Forwarded-Proto $scheme;
# proxy_set_header Connection $connection_upgrade;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# }

location / {
try_files $uri $uri/ =404;
Expand Down

0 comments on commit 1f447fe

Please sign in to comment.