File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ COPY nginx.conf /etc/nginx/nginx.conf
33
44RUN \
55 apk add openssl && \
6- openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx.key -out /etc/ssl/certs/nginx.crt
6+ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/nginx.key -out /etc/nginx/nginx.crt -subj "/C=FR/ST=France/L=Pau/O=Geode-solutions"
7+
78
89EXPOSE 443
Original file line number Diff line number Diff line change 1212 server {
1313 listen 443 ssl ;
1414 server_name localhost;
15+
1516 ssl_certificate nginx.crt;
1617 ssl_certificate_key nginx.key;
1718
@@ -20,17 +21,25 @@ http {
2021 return 405 ;
2122 }
2223 rewrite "^/[a-z0-9]{32}/geode/(.*)" /$1 break ;
23- proxy_pass https ://localhost:5000 ;
24+ proxy_pass http ://localhost:5000 ;
2425 proxy_http_version 1.1;
26+ proxy_set_header Host $host ;
27+ proxy_set_header X-Real-IP $remote_addr ;
28+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
29+ proxy_set_header X-Forwarded-Proto https;
2530 }
2631
2732 location ~ "^/[a-z0-9]{32}/viewer/" {
2833 if ( $request_method !~ ^( GET|POST|OPTIONS) $) {
2934 return 405 ;
3035 }
3136 rewrite "^/[a-z0-9]{32}/viewer/(.*)" /$1 break ;
32- proxy_pass https ://localhost:1234 ;
37+ proxy_pass http ://localhost:1234 ;
3338 proxy_http_version 1.1;
39+ proxy_set_header Host $host ;
40+ proxy_set_header X-Real-IP $remote_addr ;
41+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
42+ proxy_set_header X-Forwarded-Proto https;
3443 }
3544 }
3645}
You can’t perform that action at this time.
0 commit comments