File tree 4 files changed +16
-33
lines changed
4 files changed +16
-33
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ RUN openssl req -new -passout pass:NotSecure -key server.key -out server.csr \
10
10
-subj '/C=SS/ST=SS/L=Gotham City/O=Symfony/CN=localhost'
11
11
RUN openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt
12
12
13
- FROM httpd:2.4 -alpine
13
+ FROM nginx:1.15 -alpine
14
14
15
- COPY --from=0 server.key /usr/local/apache2/conf/server.key
16
- COPY --from=0 server.crt /usr/local/apache2/conf/server.crt
17
- COPY ./docker/httpd/httpd .conf /usr/local/apache2/ conf/httpd .conf
15
+ RUN mkdir -p /etc/nginx/ssl/
16
+ COPY --from=0 server.key server. crt /etc/nginx/ssl/
17
+ COPY ./docker/h2-proxy/default .conf /etc/nginx/ conf.d/default .conf
Original file line number Diff line number Diff line change @@ -37,6 +37,6 @@ services:
37
37
context : .
38
38
dockerfile : ./Dockerfile.h2-proxy
39
39
volumes :
40
- - ./docker/httpd/httpd .conf:/usr/local/apache2/ conf/httpd .conf:ro
40
+ - ./docker/h2-proxy/default .conf:/etc/nginx/ conf.d/default .conf:ro
41
41
ports :
42
42
- ' 443:443'
Original file line number Diff line number Diff line change
1
+ server {
2
+ listen 443 ssl http2;
3
+ listen [::]:443 ssl http2;
4
+
5
+ ssl_certificate /etc/nginx/ssl/server.crt;
6
+ ssl_certificate_key /etc/nginx/ssl/server.key;
7
+
8
+ location / {
9
+ proxy_pass http://nginx;
10
+ }
11
+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments