Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

how use http or https proxy? #177

Open
fengziyun opened this issue Aug 10, 2023 · 1 comment
Open

how use http or https proxy? #177

fengziyun opened this issue Aug 10, 2023 · 1 comment

Comments

@fengziyun
Copy link

fengziyun commented Aug 10, 2023

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搭建,我只想在自己的内网用一台机搭建这玩意=-=

@nqf
Copy link

nqf commented Aug 11, 2023

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants