Added MongoDB

This commit is contained in:
2023-09-19 02:02:49 +04:00
parent 16b85ff7d8
commit 39bc03cb68
11 changed files with 220 additions and 25 deletions

23
config/nginx/nginx.conf Normal file
View File

@@ -0,0 +1,23 @@
upstream app_server{
server app:8000;
}
server{
listen 80;
server_name ui.aykhans.me;
location / {
proxy_pass http://app_server;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
location /static/ {
alias /static/;
}
location /media/ {
alias /media/;
}
}