Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to view log stdout? id=id6CQ4gfnJlDn17m #238

Open
aogg opened this issue Aug 15, 2023 · 4 comments
Open

Unable to view log stdout? id=id6CQ4gfnJlDn17m #238

aogg opened this issue Aug 15, 2023 · 4 comments

Comments

@aogg
Copy link

aogg commented Aug 15, 2023

docker rm -f crontab-ui;
docker run --network common-all --restart=always -d --name crontab-ui
-v /data/docker/crontab-ui/crontabs/:/crontab-ui/crontabs/
-p 8000:8000
dockerproxy.com/alseambusher/crontab-ui

@aogg aogg changed the title 在80端口运行时,无法查看日志stdout?id=id6CQ4gfnJlDn17m Unable to view log stdout? id=id6CQ4gfnJlDn17m Aug 15, 2023
@aogg
Copy link
Author

aogg commented Oct 31, 2023

response

HTTP/1.1 304 Not Modified
Via: 1.1 tinyproxy (tinyproxy/1.11.1)
Server: openresty/1.21.4.1
Date: Tue, 31 Oct 2023 02:26:25 GMT
X-Powered-By: Express
WWW-Authenticate: Basic realm="Restricted Area"
Accept-Ranges: bytes
Cache-Control: public, max-age=0
Last-Modified: Mon, 30 Oct 2023 17:02:20 GMT
ETag: W/"10643-18b81894af6"

@aogg
Copy link
Author

aogg commented Oct 31, 2023

request

GET /stdout?id=9tr9SYNA2V0CMVOB HTTP/1.1
Host: aa.sslip.io
Authorization: Basic YaaaaDU2
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.67
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Referer: http://aa.sslip.io/
Accept-Encoding: gzip
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6
If-None-Match: W/"10643-18b81894af6"
If-Modified-Since: Mon, 30 Oct 2023 17:02:20 GMT
x-forwarded-for: 172.29.192.1
Connection: keep-alive

@aogg
Copy link
Author

aogg commented Oct 31, 2023

you code

// basic auth
var BASIC_AUTH_USER = process.env.BASIC_AUTH_USER;
var BASIC_AUTH_PWD = process.env.BASIC_AUTH_PWD;

if (BASIC_AUTH_USER && BASIC_AUTH_PWD) {
    app.use(function(req, res, next) {
        res.setHeader('WWW-Authenticate', 'Basic realm="Restricted Area"')
        next();
    });

	app.use(basicAuth({
        users: {
            [BASIC_AUTH_USER]: BASIC_AUTH_PWD
        }
    }))
}

@aogg
Copy link
Author

aogg commented Oct 31, 2023

There is a function of automatically using http cache, which always triggers the download.

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

No branches or pull requests

1 participant