37 lines
810 B
Nginx Configuration File
37 lines
810 B
Nginx Configuration File
events {}
|
|
http {
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
upstream torreta {
|
|
server torreta:4555;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
|
|
client_max_body_size 0;
|
|
|
|
location / {
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
proxy_set_header X-Forwarded-Port $server_port;
|
|
|
|
proxy_pass http://torreta;
|
|
}
|
|
|
|
location /static/ {
|
|
alias /app/staticfiles/;
|
|
}
|
|
|
|
location /media/ {
|
|
alias /app/media/;
|
|
}
|
|
|
|
location ~ /.well-known/acme-challenge/ {
|
|
root /var/www/certbot;
|
|
}
|
|
}
|
|
}
|