File: /var/lib/letsencrypt/backups/1753690221.365255/files.nowruzgan.com_9
server {
server_name files.nowruzgan.com;
client_max_body_size 0;
proxy_buffering off;
# Main entry point for the application
location / {
# Uncomment this to enable gRPC and thus be able to use cells-sync
#if ($http_content_type = "application/grpc") {
# grpc_pass grpcs://cells:7070;
#}
proxy_pass http://localhost:7070;
}
location /ws/ {
proxy_pass http://localhost:7070;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
location /cool/ {
proxy_pass http://localhost:7070;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
error_log /var/log/nginx/cells-proxy-error.log;
access_log /var/log/nginx/cells-proxy-access.log;
listen [::]:443 ssl;
listen 443 ssl http2;
ssl_certificate /etc/letsencrypt/live/files.nowruzgan.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/files.nowruzgan.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
server_name files.nowruzgan.com;
listen 80;
return 301 https://$host$request_uri;
}