[web2py] Re: Hosting my web2py application

2020-10-27 Thread jonatha...@whatho.net
Do you want instructions on how to set up and run a server (Linux, Windows?) on your home premises? Instructions on how to install web2py on such a server? Instructions on how to provide access to web browsers out on the internet (e.g. setting up IP addresses on which the server can be

Re: [web2py] Re: How to reject request based on location

2020-10-27 Thread Eliezer (Vlad) Tseytkin
Got it, Thank you! On Tue, Oct 27, 2020, 3:57 PM Val K wrote: > It seems PA doesnt support low-level-IP-blocking > https://www.pythonanywhere.com/forums/topic/8212/ > So you have to use db.py as Chris mentioned (or something like > *_block_list.py* in models dir - file name should be top most >

Re: [web2py] Re: How to reject request based on location

2020-10-27 Thread Val K
It seems PA doesnt support low-level-IP-blocking https://www.pythonanywhere.com/forums/topic/8212/ So you have to use db.py as Chris mentioned (or something like *_block_list.py* in models dir - file name should be top most alphabetical) Also you can modify PA-starting script to catch bad-IP

Re: [web2py] Hosting my web2py application

2020-10-27 Thread Chris
Hi, you can check the install script of waf2py and get the part where the apache server is installed with web2py. you may need to adjust the paths. This is for a debian system https://github.com/ITSec-Chile/Waf2Py/blob/master/installer/waf2py_installer.sh — Cheers. Chris. > On martes, oct. 27,

Re: [web2py] Re: How to reject request based on location

2020-10-27 Thread Chris
Hi, here you have some examples: Web server level Here there is examples about how to deny an IP and network ranges in nginx, if you can modify the nginx.conf file then is easy. https://www.cyberciti.biz/faq/linux-unix-nginx-access-control-howto/ At OS level. If you have control of IP tables

[web2py] Appadmin to Welcome app?

2020-10-27 Thread Gaël Princivalle
Hello. I'm still trying to migrate my apps from Webfaction to Opalstack. Migrating Web2py apps is not so easy... I've 3 apps, 2 are now ok. Using the same steps I'm unable to migrate the third one. When I click on the appadmin button for checking the DB records, or when I try to display the

Re: [web2py] Re: How to reject request based on location

2020-10-27 Thread Eliezer (Vlad) Tseytkin
I see... Could you please give me a hint on where to find how to accomplish this in nginx? (I use PythonAnywhere) On Tue, Oct 27, 2020 at 1:15 AM valq...@gmail.com wrote: > It is better to do this at front server like nginx, Apache or even at > os-level. In web2py, models files are processed

[web2py] Hosting my web2py application

2020-10-27 Thread mostwanted
How do I setup a private home server to host my web2py application? What do i need & how do i put it together? If anyone has done it before please share the process or direct me to where I can find the information. Regards; Mostwanted -- Resources: - http://web2py.com -

Re: [web2py] Re: Migrate a PostgreSQL Webfaction DB to Opalstack

2020-10-27 Thread Jose C
On Tuesday, 27 October 2020 at 14:35:23 UTC Ramos wrote: > rsync is awesome :) > thank you > Yes, a very nifty little utility... and if you backup to any cloud providers, then check out rclone as well (built on rsync). -- Resources: - http://web2py.com -

Re: [web2py] Re: Migrate a PostgreSQL Webfaction DB to Opalstack

2020-10-27 Thread António Ramos
rsync is awesome :) thank you Em ter., 27 de out. de 2020 às 13:00, Jose C escreveu: > Opalstack have some migration tools available: > https://community.opalstack.com/d/155-howto-migrate-stuff-automatically-from-webfaction > > Also I found my old notes from when I moved my web2py apps and PG

Re: [web2py] On Windows I am trying to delete an application that uses logging but the delete fails because the log file is "in use"

2020-10-27 Thread Davidiam
It looks like it uses one handler although the logger rotates the actual log files. I think that I would need to shut down the logger before or at the beginning of the uninstall step, but as the "uninstall application" is run from the admin app, it would be a bit tricky to implement the

[web2py] Re: Migrate a PostgreSQL Webfaction DB to Opalstack

2020-10-27 Thread Jose C
Opalstack have some migration tools available: https://community.opalstack.com/d/155-howto-migrate-stuff-automatically-from-webfaction Also I found my old notes from when I moved my web2py apps and PG databases over 18 months ago, hopefully they will help. Also includes how to sync images