Fix test naive inbound with nginx

This commit is contained in:
世界
2022-08-23 14:37:17 +08:00
parent 9edfe7d9d3
commit e750c747c6
3 changed files with 46 additions and 21 deletions

View File

@@ -10,12 +10,11 @@ import (
"github.com/sagernet/sing/common/network"
)
// FIXME: nginx do not support CONNECT
func _TestNaiveInboundWithNingx(t *testing.T) {
func TestNaiveInboundWithNginx(t *testing.T) {
caPem, certPem, keyPem := createSelfSignedCertificate(t, "example.org")
startInstance(t, option.Options{
Log: &option.LogOptions{
Level: "trace",
Level: "error",
},
Inbounds: []option.Inbound{
{
@@ -40,6 +39,7 @@ func _TestNaiveInboundWithNingx(t *testing.T) {
Image: ImageNginx,
Ports: []uint16{serverPort, otherPort},
Bind: map[string]string{
"nginx.conf": "/etc/nginx/nginx.conf",
"naive-nginx.conf": "/etc/nginx/conf.d/naive.conf",
certPem: "/etc/nginx/cert.pem",
keyPem: "/etc/nginx/key.pem",