Hey everyone, I struggled last night to setup web2py on my VPS Linux server which uses ubuntu 20.04.
I had to update the script with multiple edits. Most of them around new pip syntax, updated requirements of nginx for self-signed certs and updated package names. I will create a pull request on github soon, but meanwhile, feel free to get it from here: https://drive.google.com/drive/folders/1gxP9nSvv_wUxQcxLfOrGnrb30Jtf46I2?usp=sharing And while we are at it of course I ran into troubles with the self-signed cert, so I used one from letsecnrypt, but I fount letsencrypt a major pain to use so this website helped me: https://punchsalad.com/ssl-certificate-generator/ While I have seen plenty of scripts on github to get web2py play nice with serving the static challenger file in .well-known/acme-challenge, I found that too much fiddling for now so I just opted for using the DNS check: If you use godaddy here are some tipps: When you add a DNS verfiy TXT record for letsencrypt drop the domain from the TXT recrod displayed so it says : _acme-challenge instead of _acme-challenge.yourdomain.com because godaddy adds "yourdomain.com" automatically. [image: image.png] Also do not use the function to "route to another IP with masking" in Godaddy if you want a working web2py,nginx, letsencrypt ssl hosting to work, as it introduces another bounce inbetween. You can download the key and cert bundle and then just replace and web2py.cert and web2py.key file with the ones from letsencrypt and restart nginx. Instead deactivated any re-routing offered by godaddy and just remove the current A @ someip entry and add A @ yourserverip instead. Now the routing to your Linux host will work. Last tipp that I find useful: Oralce gives you 2 Linux VPS servers for free forever and 2 hosted Oracle databases free forever: https://www.oracle.com/cloud/free/ I am using it and I am pleased so far. Another tipp: Enable at least 4GB swap right away. It does not have swap per default and only 1GB ram. So usually that leads to problems without swap. I also put swappiness = 10. I had some struggles with IPtables and the Oracle firewall at the beginning, but if you have troubles opening ports just let me know. For example for opening port 443 you have to first enable an ingress rule in Oracle Cloud to let the TCP traffic hit your VM and then within your ubuntu VM you also need to open the port like so: sudo iptables -I INPUT 2 -p tcp --dport 443 -j ACCEPT So your HTTPS traffic comes through. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CADHCKLT4m8tLtEHOwoFgoBPo1BFJNnURvqiE%3DiBNPMtySz1eog%40mail.gmail.com.