there is a homepage now
This commit is contained in:
@ -1,6 +1,12 @@
|
||||
FROM nginx:latest
|
||||
FROM debian:bullseye
|
||||
|
||||
RUN apt update
|
||||
RUN apt upgrade -y
|
||||
RUN apt install openssl nginx -y
|
||||
|
||||
RUN mkdir -p /etc/nginx/ssl
|
||||
RUN apt install -y openssl
|
||||
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=ptme.com/UID=ptme"
|
||||
|
||||
COPY conf/nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
||||
|
@ -13,21 +13,25 @@ http {
|
||||
client_max_body_size 2G;
|
||||
|
||||
server {
|
||||
server_name ptme.com;
|
||||
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 /var/www/djangoserver/;
|
||||
|
||||
location /static/ {
|
||||
alias /var/www/djangoserver/static/;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass https://127.0.0.1:5000;
|
||||
}
|
||||
server_name ptme.com;
|
||||
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 /var/www/djangoserver/;
|
||||
|
||||
location /static/ {
|
||||
alias /var/www/djangoserver/static/;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://djangoserver:8000;
|
||||
}
|
||||
|
||||
location /admin {
|
||||
proxy_pass http://adminer:8080;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user