dockerize app + add celery + impl pushpin for message events

This commit is contained in:
2023-09-18 14:29:37 +02:00
parent bd11ddbd60
commit 5d51bc6637
28 changed files with 353 additions and 302 deletions
+7
View File
@@ -0,0 +1,7 @@
FROM nginx:latest
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]
+39
View File
@@ -0,0 +1,39 @@
worker_processes 1;
events {
worker_connections 1024;
}
http {
server {
listen 8080;
location /static/ {
alias /app/static/;
}
location / {
proxy_pass http://pushpin:7999;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
# location / {
# proxy_pass http://mumui:8000;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# }
# location /events {
# proxy_pass http://pushpin:7999/stream;
# proxy_set_header Host $host;
# # proxy_set_header X-Real-IP $remote_addr;
# # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_http_version 1.1;
# # proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "";
# }
}
}