continuer le fichier nginx.config
This commit is contained in:
@@ -2,4 +2,9 @@ FROM debian:bullseye
|
|||||||
RUN apt update
|
RUN apt update
|
||||||
RUN apt install nginx -y
|
RUN apt install nginx -y
|
||||||
RUN apt install vim -y
|
RUN apt install vim -y
|
||||||
RUN apt install curl -y
|
RUN apt install curl -y
|
||||||
|
RUN apt install openssl -y
|
||||||
|
RUN openssl req -x509 -nodes -out /etc/nginx/ssl/inception.crt -keyout /etc/nginx/ssl/inception.key -subj "/C=FR/ST=IDF/L=Paris/O=42/OU=42/CN=yantoine.42.fr/UID=yantoine"
|
||||||
|
RUN mkdir -p /etc/nginx/ssl
|
||||||
|
RUN mkdir -p /var/run/nginx
|
||||||
|
COPY conf/nginx.conf /etc/nginx/nginx.conf
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
server {
|
||||||
|
#SSL/TLS Configuration
|
||||||
|
listen 443 ssl;
|
||||||
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||||||
|
ssl_certificate /etc/nginx/ssl/inception.crt;
|
||||||
|
ssl_certificate_key /etc/nginx/ssl/inception.key;
|
||||||
|
|
||||||
|
#root and index and server_name
|
||||||
|
root /var/www/html;
|
||||||
|
server_name localhost;
|
||||||
|
index index.php index.html index.htm;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user