ssl - How to set up a meteor server on https connection? -
i have local meteor server running on port 3000.then want add ssl certificate project.i have generate ssl files, should next?
deploy app using meteor up have built in ssl support.
or use common web server nginx or apache, setup ssl , reverse proxy meteor app.
example: nginx configuration
server { listen 80; server_name www.example.com; rewrite ^ https://$server_name$request_uri? permanent; } server { listen 443 ssl ; server_name www.example.com; ssl on; ssl_certificate /etc/nginx/ssl/ssl.crt; ssl_certificate_key /etc/nginx/ssl/ssl.key; location / { proxy_pass http://127.0.0.1:3000; proxy_http_version 1.1; proxy_set_header upgrade $http_upgrade; proxy_set_header connection 'upgrade'; proxy_set_header x-forwarded-for $remote_addr; } }
Comments
Post a Comment