In admin/models/access.py
deny_file = os.path.join(request.folder, 'private', 'hosts.deny')
allowed_number_of_attempts = 5
expiration_failed_logins = 3600
You can remove/edit the file private/hosts.deny, or increase the number of
attempts
On Friday, 10 April 2015 23:00:33 UTC-5, Shreyas Pand
same problem here,
Anybody?
On Sunday, 22 September 2013 22:27:51 UTC+5:30, Pascal wrote:
>
> Hello mate,
>
> I forgot the password of the https online admin page of my Web2py
> application and I tried several password.
> After few attempt it disable the Admin.
> Please can you let me know h
the strange thing is that while I don't have access to your setup,
web2py.py -a password -p 8000
definitely checks for a parameters_8000.py file, while in your case doesn't.
Even
anyserver.py -s gunicorn -p 8000
checks for a parameters_8000.py file.
Are you totally sure that you aren't copy-p
On Sat, 5 Oct 2013 05:05:26 -0700 (PDT)
Niphlod wrote:
> then let's make things even easier web2py expects a
> parameters_xxx.py file that is extracted from
> request.env.server_port
OK, now it's even more clear.
> make a test page that does
>
> def test():
> return dict(a=request.env
then let's make things even easier web2py expects a parameters_xxx.py
file that is extracted from request.env.server_port
make a test page that does
def test():
return dict(a=request.env.server_port)
and see where web2py is told to listen on :D
BTW, I didn't mean that you **need**
On Fri, 4 Oct 2013 14:04:09 -0700 (PDT)
Niphlod wrote:
Hello Niphlod,
> >
> > > as often, you're making things much more complicated then they
> > > really are.
> >
> > I don't understand?
> >
>
> if you read the code of admin, you'll quickly realize.
First of all I thought that in the above
On Friday, October 4, 2013 9:30:17 PM UTC+2, Gour wrote:
>
> On Fri, 4 Oct 2013 11:53:22 -0700 (PDT)
> Niphlod > wrote:
>
> > as often, you're making things much more complicated then they really
> > are.
>
> I don't understand?
>
if you read the code of admin, you'll quickly realize.
>
On Fri, 4 Oct 2013 14:41:30 -0400
Richard Vézina
wrote:
> This may help!
Thank you. I'll try to learn something about nginx from it, but let me
say that I do NOT have access to the setup of nginx at the front-end and
therefore not sure, how much I can do via custom *.conf file.
Of course, I cou
On Fri, 4 Oct 2013 11:53:22 -0700 (PDT)
Niphlod wrote:
> as often, you're making things much more complicated then they really
> are.
I don't understand?
> web2py "calculates" what password_portnumber.py to use seeing where
> the server listens to. It has (and can't have) knowledge of any
> pr
:)
On Fri, Oct 4, 2013 at 2:53 PM, Niphlod wrote:
> as often, you're making things much more complicated then they really are.
> web2py "calculates" what password_portnumber.py to use seeing where the
> server listens to. It has (and can't have) knowledge of any proxies in
> between.
> So, even
as often, you're making things much more complicated then they really are.
web2py "calculates" what password_portnumber.py to use seeing where the
server listens to. It has (and can't have) knowledge of any proxies in
between.
So, even if your site is reachable from the outside world on the port
This may help!
server {
listen 80;
return 301 https://appname.domain.med$request_uri; #
http://wiki.nginx.org/Pitfalls#Taxing_Rewrites
charset utf-8;
server_name $hostname;
root /var/www;
access_log /var/log/nginx/yoursite.access.log;
On Fri, 4 Oct 2013 10:45:13 -0700 (PDT)
LightDot wrote:
> Couple of things I don't understand - are you using anyserver.py or
> not?
No.
> Are you using nginx in front of gunicorn, or..?
Yes, nginx is used as reverse proxy.
> Please post your relevant config files and full startup lines.
He
In this script you can see how is web2py started by uwsgi in emperor mode :
https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh
the python web2py.py in included...
Hope it could help you figure it out.
I remember that with unicorn I start redmine with a redmin
Couple of things I don't understand - are you using anyserver.py or not?
Are you using nginx in front of gunicorn, or..?
Please post your relevant config files and full startup lines.
Regards
On Friday, October 4, 2013 7:23:27 PM UTC+2, Gour wrote:
>
> On Fri, 4 Oct 2013 13:10:48 -0400
> Richa
Not sure about that, but I think that specifying a port maybe mean that it
is runned in local only...
Richard
On Fri, Oct 4, 2013 at 1:23 PM, Gour wrote:
> On Fri, 4 Oct 2013 13:10:48 -0400
> Richard Vézina
> wrote:
>
> > You miss the -a "password" parameter I think!
> >
> > You pass the same
On Fri, 4 Oct 2013 13:10:48 -0400
Richard Vézina
wrote:
> You miss the -a "password" parameter I think!
>
> You pass the same password that is encrypted in you parameters_443.py
> file...
>
> It may still miss some parameter to specify you want to run the
> server in https mode.
I know about '
Ah, got it to work.
Forgot to run web2py directly initially over SSH with python2.7 ./web2py.py
-p -a
All working now :D
On Sat, Jul 21, 2012 at 8:56 PM, Alec Taylor wrote:
> Recently got my site hosted remotely (on WebFaction), but I'm getting this
> error for some reason.
>
> After doing a
Thanks that worked.
My web2py process is starting with my logged in user. I did this to prevent
having to su all the time, and I can do git pull and changes from a single
user account.
Anyway with my setup you don't need: sudo -u user_name instead you just run:
python -c "from gluon.widget impor
Yes I have ssh. The site is on an amazon ubuntu instance.
If my python process is running with a user other then www-data do I just
change the first part of the command?
sudo -u user_name python -c "from gluon main import save_password;
save_password(raw_input('admin password:'), 443)"
On Tue, F
Do you have ssh access? You better do.
cd under web2py/
then do:
sudo -u www-data python -c "from gluon.main import save_password;
save_password(raw_input('admin password: '),443)"
replace 443 with the port you use for admin. Should be 443 for https
On Feb 28, 7:15 pm, Bruce Wade wrote:
> For s
21 matches
Mail list logo