Skip to content

How to reversely proxy AllTalk with Nginx? #667

@MoRanYue

Description

@MoRanYue

🔴 If you have installed AllTalk in a custom Python environment, I will only be able to provide limited assistance/support. AllTalk draws on a variety of scripts and libraries that are not written or managed by myself, and they may fail, error or give strange results in custom built python environments.

🔴 Please generate a diagnostics report and upload the "diagnostics.log" as this helps me understand your configuration.

https://github.com/erew123/alltalk_tts/tree/main?#-how-to-make-a-diagnostics-report-file

Describe the bug
Many main functions did not work. Using browser on my server to access localhost:7852, everything worked well.

To Reproduce
Nginx <-> AllTalk Gradio Interface (127.0.0.1:7852), with the latter's proxy system disabled.

Screenshots
Nginx configuration:

server {
        listen 8000 ssl;
        server_name example.com;
        http2 on;

        ssl_certificate chain.pem;
        ssl_certificate_key key.pem;

        client_max_body_size 0;

        location / {
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_set_header Host $http_host;

            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";

            proxy_http_version 1.1;
            proxy_buffering off;
            proxy_cache off;

            proxy_read_timeout 3600;
            proxy_send_timeout 3600;

            proxy_pass http://127.0.0.1:7852;
        }
    }

Text/logs
If applicable, copy/paste in your logs here from the console.

Desktop (please complete the following information):
AllTalk was updated: 9th January 2026 at 08:58 Branch: alltalkbeta
Custom Python environment: yes, venv created by uv, Python 3.11, Pytorch 2.2.1+cu121
Text-generation-webUI was updated: not using

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions