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
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