feat(tandoor): Add Tandoor

This commit is contained in:
AdrienPoupa
2023-12-26 12:09:00 -05:00
committed by Adrien Poupa
parent d6271f131c
commit 02b37bed6d
13 changed files with 396 additions and 27 deletions

View File

@@ -0,0 +1,29 @@
server {
listen 80;
server_name localhost;
client_max_body_size 128M;
# serve media files
location /recipes/media/ {
alias /media/;
}
location /recipes/static/ {
alias /static/;
}
# pass requests for dynamic content to gunicorn
location / {
proxy_set_header Host $http_host;
proxy_pass http://tandoor:8080;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Script-Name /recipes;
proxy_cookie_path / /recipes;
error_page 502 /errors/http502.html;
}
location /recipes/errors/ {
alias /etc/nginx/conf.d/errorpages/;
internal;
}
}