File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM nginx:alpine
22COPY nginx.conf /etc/nginx/nginx.conf
33
4- EXPOSE 80
4+ RUN openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx.key -out /etc/ssl/certs/nginx.crt
5+
6+ EXPOSE 443
Original file line number Diff line number Diff line change @@ -10,15 +10,17 @@ http {
1010 gzip_min_length 1000 ;
1111
1212 server {
13- listen 80 ;
13+ listen 443 ssl ;
1414 server_name localhost;
15+ ssl_certificate nginx.crt;
16+ ssl_certificate_key nginx.key;
1517
1618 location ~ "^/[a-z0-9]{32}/geode/" {
1719 if ( $request_method !~ ^( GET|POST|OPTIONS) $) {
1820 return 405 ;
1921 }
2022 rewrite "^/[a-z0-9]{32}/geode/(.*)" /$1 break ;
21- proxy_pass http ://localhost:5000 ;
23+ proxy_pass https ://localhost:5000 ;
2224 proxy_http_version 1.1;
2325 }
2426
2729 return 405 ;
2830 }
2931 rewrite "^/[a-z0-9]{32}/viewer/(.*)" /$1 break ;
30- proxy_pass http ://localhost:1234 ;
32+ proxy_pass https ://localhost:1234 ;
3133 proxy_http_version 1.1;
3234 }
3335 }
You can’t perform that action at this time.
0 commit comments