Skip to content

How to setup Nginx Proxy Config without a port #22

@ThaYTOfficial

Description

@ThaYTOfficial

but my hosting owners cannot gimme a port
now i have alr setup pterodactyl
but i need to setup heliactyl now its all done but
`server {
listen 80;
server_name ;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
location /afkwspath {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass "http://localhost:/afkwspath";
}

server_name <domain>;

ssl_certificate /etc/letsencrypt/live//fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live//privkey.pem;
ssl_session_cache shared:SSL:10m;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://localhost:/; <<<<<<<<<<<<< Here (I don't have a port to set)
proxy_buffering off;
proxy_set_header X-Real-IP $remote_addr;
}
}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions