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

Implementation of another service on port 443 #1055

Closed
talesam opened this issue May 1, 2021 · 1 comment
Closed

Implementation of another service on port 443 #1055

talesam opened this issue May 1, 2021 · 1 comment

Comments

@talesam
Copy link

talesam commented May 1, 2021

Maybe someone can help me .. I need to implement a proxy to use port 443 for those who access from the outside, but I'm not sure how to do this ...

An example is on this site: https://henrywithu.com/coexistence-of-web-applications-and-vless-tcp-xtls/

I believe it would be something like this ..

stream {
        map $ssl_preread_server_name $example_multi {
                webgame.example.com xtls;
        }
        upstream xtls {
                server 127.0.0.1:20001; # Xray port
        }
        server {
                listen 443      reuseport;
                listen [::]:443 reuseport;
                proxy_pass      $example_multi;
                ssl_preread     on;
        }
}

@chaptergy
Copy link
Collaborator

Not yet possible, but a PR exists making it possible. see #853

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

No branches or pull requests

2 participants