Commit b0d6337 1 parent 4f349c4 commit b0d6337 Copy full SHA for b0d6337
File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ services:
107
107
- /etc/letsencrypt:/etc/letsencrypt
108
108
ports :
109
109
- " 80:80"
110
- command : nginx -g 'daemon off;'
110
+ command : nginx -g 'daemon off;' -g 'error_log /var/log/nginx/error.log debug;'
111
111
depends_on :
112
112
backend :
113
113
condition : service_healthy
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ ENV REACT_APP_BACKEND_URL=$REACT_APP_BACKEND_URL
13
13
RUN npm run build
14
14
15
15
# Serve the app with nginx
16
- FROM nginx:alpine
16
+ FROM nginx:1.25.3
17
17
COPY --from=build /usr/src/app/build /usr/share/nginx/html
18
18
19
19
EXPOSE 80
Original file line number Diff line number Diff line change @@ -81,7 +81,8 @@ server {
81
81
server {
82
82
listen 80 ;
83
83
server_name api.peterbull.org;
84
-
84
+ error_log /var/log/nginx/airflow_error.log warn ;
85
+ access_log /var/log/nginx/airflow_access.log combined;
85
86
# backend
86
87
location / {
87
88
proxy_pass http://backend:8000;
@@ -99,6 +100,8 @@ server {
99
100
proxy_set_header X-Forwarded-Proto $scheme ;
100
101
proxy_set_header X-Forwarded-Host $host ;
101
102
proxy_set_header X-Forwarded-Port $server_port ;
103
+ proxy_set_header Upgrade $http_upgrade ;
104
+ proxy_set_header Connection "upgrade" ;
102
105
}
103
106
104
107
# Specify the error pages
You can’t perform that action at this time.
0 commit comments