Rxm0n / freegpt-webui

GPT 3.5/4 with a Chat Web UI. No API key required.

Home Page:https://freegpt-webui-chimera.ramonvc.repl.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how use http or https proxy?

fengziyun opened this issue · comments

sudo docker run -p 1338:1338 --name chatgpt \
    -e HTTP_PROXY="http://192.168.1.1:18080" \
    -e HTTPS_PROXY="https://192.168.1.1:18080" \
    -v /chat/config.json:/app/config.json \
    ramonvc/freegpt-webui

freegpt retrue:

{"_action":"_ask","error":"an error occurred HTTPSConnectionPool(host='chatgpt.ai', port=443): Max retries exceeded with url: / (Caused by ProxyError('Unable to connect to proxy', SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1007)'))))","success":false}

config.json

{
        "site_config": {
                "host": "0.0.0.0",
                "port": 1338,
                "debug": false
        },
        "use_auto_proxy": true,
        "url_prefix": ""
}

config.json.bak

{
        "site_config": {
                "host": "0.0.0.0",
                "port": 1338,
                "debug": false
        },
        "use_auto_proxy": true,
        "proxy": {
                "enable": true,
                "http": "192.168.1.1:18080",
                "https": "192.168.1.1:18080"
        },
        "url_prefix": ""
}

I've tried everything, but it still doesn't work
我啥都试过了,都没用。我只有代理可以用... 不想用国外的VPS搭建,我只想在自己的内网用一台机搭建这玩意=-=

commented
sudo docker run -p 1338:1338 --name chatgpt \
    -e HTTP_PROXY="http://192.168.1.1:18080" \
    -e HTTPS_PROXY="https://192.168.1.1:18080" \
    -v /chat/config.json:/app/config.json \
    ramonvc/freegpt-webui

freegpt retrue:

{"_action":"_ask","error":"an error occurred HTTPSConnectionPool(host='chatgpt.ai', port=443): Max retries exceeded with url: / (Caused by ProxyError('Unable to connect to proxy', SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1007)'))))","success":false}

config.json

{
        "site_config": {
                "host": "0.0.0.0",
                "port": 1338,
                "debug": false
        },
        "use_auto_proxy": true,
        "url_prefix": ""
}

config.json.bak

{
        "site_config": {
                "host": "0.0.0.0",
                "port": 1338,
                "debug": false
        },
        "use_auto_proxy": true,
        "proxy": {
                "enable": true,
                "http": "192.168.1.1:18080",
                "https": "192.168.1.1:18080"
        },
        "url_prefix": ""
}

I've tried everything, but it still doesn't work 我啥都试过了,都没用。我只有代理可以用... 不想用国外的VPS搭建,我只想在自己的内网用一台机搭建这玩意=-=

或许你可以尝试一下 这个工程 https://github.com/fantasy-peak/cpp-freegpt-webui