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

How to make nginx proxy work #9

Open
rahulnjs opened this issue Aug 31, 2023 · 0 comments
Open

How to make nginx proxy work #9

rahulnjs opened this issue Aug 31, 2023 · 0 comments

Comments

@rahulnjs
Copy link

I was trying to setup a domain for witty deployed on my instance.

Here is my nginx config,

server {
        server_name witty.xxx.xxx;

        location / {
                proxy_pass http://localhost:8080;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                proxy_read_timeout 3600;
        }

    listen 443 ssl; # managed by Certbot
    ssl_certificate fullchain.pem; # managed by Certbot
    ssl_certificate_key privkey.pem; # managed by Certbot
    include options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam ssl-dhparams.pem; # managed by Certbot

}

But I get 400 on /

Please let me know if I am missing something, or what would be the best way not to have to use the server ip to access it.

Thanks

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