mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 10:51:36 -04:00
11 lines
442 B
Docker
11 lines
442 B
Docker
FROM nginx:latest
|
|
|
|
# Create a self-signed cert and key pair for HTTPS.
|
|
RUN openssl genrsa -out /cert.key 2048
|
|
RUN openssl req -new -x509 -nodes -key /cert.key -out /cert.crt -days 3650 \
|
|
-subj "/C=US/ST=State/L=City/O=Org/OU=WROLPi/CN=wrolpi.local"
|
|
RUN chmod 777 /cert.key /cert.crt
|
|
|
|
RUN rm /etc/nginx/conf.d/default.conf
|
|
COPY docker/web/nginx.dev.conf /etc/nginx/nginx.conf
|
|
COPY docker/web/wrolpi.dev.conf /etc/nginx/conf.d/wrolpi.conf
|