Files
METH_Transcendence/srcs/requirements/nginx/conf/nginx.conf
Kum1ta d27ab24c5e docker compose (Ready) :
- nginx
       - proxy_pass on port 5000
       - static available at url "xxxx/static/<file>
   - djangoserver
       - just a program with infinite while for test docker-compose
   Nginx and Djangoserv containers linked with the folder at "/var/wwww/djangoserver"
2024-07-28 13:25:38 +02:00

34 lines
586 B
Nginx Configuration File

user www-data;
worker_processes auto;
pid /run/nginx.pid;
error_log /var/log/nginx/error.log;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
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;
}
}
}