Skip to content

Commit

Permalink
Setup nginx server for status page
Browse files Browse the repository at this point in the history
  • Loading branch information
azvoleff committed Aug 5, 2024
1 parent 52d154d commit f38b03d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
7 changes: 6 additions & 1 deletion nginx-conf/app.conf
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,17 @@ server {
proxy_pass http://172.40.1.210:3002;
}

location /status {
root /public
auth_basic "Trends.Earth status";
auth_basic_user_file /etc/nginx/.htpasswd;
}

location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://172.40.1.210:8081;
#try_files $uri $uri/ /index.html =404;
}

}
6 changes: 4 additions & 2 deletions status/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM rocker/r2u:24.04
MAINTAINER Alex Zvoleff [email protected]
LABEL maintainer="Alex Zvoleff [email protected]"

RUN apt-get update && \
apt-get install -yq git pandoc \
Expand All @@ -12,7 +12,9 @@ RUN apt-get update && \
mkdir -p /work

RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8 ENV LANGUAGE en_US:en ENV LC_ALL en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8

RUN chown $USER:$USER /work

Expand Down
Empty file modified status/entrypoint.sh
100644 → 100755
Empty file.
Empty file modified status/knit2html.sh
100644 → 100755
Empty file.
Empty file modified status/knit2pdf.sh
100644 → 100755
Empty file.

0 comments on commit f38b03d

Please sign in to comment.