caddy


文件系统


caddy hash-password --plaintext '1234'
notes.nymath.top {
    root * /root/web/mathspace
    file_server browse
    basicauth /@finmath/* {
        # 1234
        nymath $2a$10$1dKf3E9f6/OGVQ5qGdmoGeYAT9oAyy0Zfbd9k7tOJ1a7kbSGzdwMW
    }
    tls {
        on_demand
    }
}

反向代理



aabbccdd.clash.nymath.top:30021 {
    log {
        output file /opt/caddy-pro/log/caddy.log
    }
    tls {
        protocols tls1.2 tls1.3
        ciphers TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
        curves x25519
    }
    @v2ray_websocket {
        path /nymathray
        header Connection Upgrade
        header Upgrade websocket
    }
    reverse_proxy @v2ray_websocket 172.17.1.59:10000
}

# The Caddyfile is an easy way to configure your Caddy web server.
#
# Unless the file starts with a global options block, the first
# uncommented line is always the address of your site.
#
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace ":80" below with your
# domain name.

# :80 {
# 	# Set this path to your site's directory.
# 	root * /usr/share/caddy

# 	# Enable the static file server.
# 	file_server

# 	# Another common task is to set up a reverse proxy:
# 	# reverse_proxy localhost:8080

# 	# Or serve a PHP site through php-fpm:
# 	# php_fastcgi localhost:9000
#

tex.mathseem.com {
	reverse_proxy localhost:50080
	tls {
		on_demand
	}
}

latex.mathseem.com {
	reverse_proxy localhost:50081
	tls {
		on_demand
	}
}

panel.mathseem.com {
    reverse_proxy localhost:30000
    tls {
        on_demand
    }
}

wiki.mathseem.com {
    reverse_proxy localhost:53061
    tls {
        on_demand
    }
}

cloud.mathseem.com {
	reverse_proxy localhost:8081
	tls {
		on_demand
	}
}

code.pku.mathseem.com {
	reverse_proxy localhost:52081
	tls {
		on_demand
	}
}




==

亲!久等了哦。这就给您发过来了
您购买的订单号:4263181922701612624
http://uucz.cn/v2/RTPETE

提示:本虚拟产品不支持试用,一经使用不支持退,感谢理解

记得再来哦~

==