File tree 11 files changed +53
-3
lines changed
11 files changed +53
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ RUN mkdir /opt/ocfweb/static
6
6
ENV OCFWEB_STATIC_ROOT /opt/ocfweb/static
7
7
RUN /opt/ocfweb/venv/bin/python /opt/ocfweb/manage.py collectstatic --noinput
8
8
9
- COPY services/nginx /opt/ocfweb/services/nginx
9
+ COPY services/static /opt/ocfweb/services/static
10
10
RUN chown -R nobody:nogroup /opt/ocfweb/services
11
11
12
12
USER nobody
Original file line number Diff line number Diff line change 1
1
FROM {tag}
2
2
3
- COPY services/web /opt/ocfweb/services/web
3
+ COPY services/web /opt/ocfweb/services/
4
4
RUN chown -R nobody:nogroup /opt/ocfweb/services
5
5
6
6
USER nobody
Original file line number Diff line number Diff line change
1
+ # Empty password
2
+ prometheus:$apr1$4CUVWyim$MGnAdRap1gqM1estPDAPK0
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ exec 2>&1
4
4
5
5
cd /opt/ocfweb
6
6
exec /opt/ocfweb/venv/bin/gunicorn \
7
- -b 0 .0.0.0:8000 \
7
+ -b 127 .0.0.1:8080 \
8
8
-w 4 \
9
9
ocfweb.wsgi
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -euo pipefail
3
+ exec /opt/share/utils/sbin/stdin2syslog ocfweb-web-nginx
Original file line number Diff line number Diff line change
1
+ error_log /dev/stderr;
2
+ daemon off ;
3
+ pid /tmp/nginx_pid;
4
+
5
+ events {}
6
+
7
+ http {
8
+ include /etc/nginx/mime.types;
9
+ access_log /dev/stderr;
10
+
11
+ upstream ocfweb {
12
+ server 127.0.0.1:8080;
13
+ }
14
+
15
+ server {
16
+ listen 8000 ;
17
+
18
+ client_body_temp_path /tmp/nginx_client_temp;
19
+ fastcgi_temp_path /tmp/nginx_fastcgi_temp;
20
+ proxy_temp_path /tmp/nginx_proxy_temp;
21
+ scgi_temp_path /tmp/nginx_scgi_temp;
22
+ uwsgi_temp_path /tmp/nginx_uwsgi_temp;
23
+
24
+ location /metrics {
25
+ proxy_pass http://ocfweb;
26
+ proxy_set_header Host www.ocf.berkeley.edu;
27
+
28
+ auth_basic "Metrics" ;
29
+ auth_basic_user_file /etc/ocfweb/metrics.htpasswd;
30
+ }
31
+
32
+ location / {
33
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
34
+ proxy_set_header X-Forwarded-Proto $scheme ;
35
+ proxy_set_header Host $http_host ;
36
+ proxy_redirect off ;
37
+ proxy_pass http://ocfweb;
38
+ }
39
+ }
40
+ }
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -euo pipefail
3
+ exec 2>&1
4
+
5
+ exec nginx -c nginx.conf -p $( pwd)
You can’t perform that action at this time.
0 commit comments