Closed rrickgauer closed 2 years ago
create a mod_wsgi-express config file like this: https://github.com/rrickgauer/api.tasks/blob/dev/vps-notes/setup-mod_wsgi.txt
~move the images in to the static folder~
create an SSL certificate
certbot certonly --webroot -w /etc/api.wmiys.com -d api.wmiys.com
Then, put the keys into the setup-server command
--user www-data \
--group www-data \
--server-name api.wmiys.com \
--port 80 \
--access-log \
--log-level info \
--compress-responses \
--processes 3 \
--startup-timeout 30 \
--server-root /etc/api.wmiys.com \
--host 104.225.208.116 \
--document-root /var/www/wmiys/api/api_wmiys/static \
--https-port 443 \
--https-only \
--ssl-certificate-file /etc/letsencrypt/live/api.wmiys.com/fullchain.pem \
--ssl-certificate-key-file /etc/letsencrypt/live/api.wmiys.com/privkey.pem \
--setup-only