Skip to content

Commit 8ef5026

Browse files
🚧 add ssl & expose 443 port
1 parent c3b74be commit 8ef5026

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎Dockerfile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
FROM nginx:alpine
2-
COPY nginx.conf /etc/nginx/nginx.conf
2+
COPY nginx.conf /etc/nginx/nginx.conf
3+
4+
EXPOSE 443

‎nginx.conf‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ http {
1010
gzip_min_length 1000;
1111

1212
server {
13-
listen 443;
13+
listen 443 ssl;
1414
server_name localhost;
1515

1616
location ~ "^/[a-z0-9]{32}/geode/" {
1717
if ($request_method !~ ^(GET|POST|OPTIONS)$) {
1818
return 405;
1919
}
2020
rewrite "^/[a-z0-9]{32}/geode/(.*)" /$1 break;
21-
proxy_pass http://localhost:5000;
21+
proxy_pass http://geode:5000;
2222
proxy_http_version 1.1;
2323
}
2424

@@ -27,7 +27,7 @@ http {
2727
return 405;
2828
}
2929
rewrite "^/[a-z0-9]{32}/viewer/(.*)" /$1 break;
30-
proxy_pass http://localhost:1234;
30+
proxy_pass http://viewer:1234;
3131
proxy_http_version 1.1;
3232
}
3333
}

0 commit comments

Comments
 (0)