[web2py] rocket web2py ssl non ssl

2018-01-09 Thread 黄祥
if i'm not wrong, in the past we can run web2py using rocket for both port 443 (ssl) and 80 within 1 line command *e.g.* sudo python ~/web2py/web2py.py --nogui --no-banner -a 'a' -c web2py.crt -k web2py.key --interfaces=0.0.0.0:443:web2py.key:web2py.crt;0.0.0.0:80 -p 443 in recent version can no

Re: {Disarmed} [web2py] Re: web2py OpenID or Oauth2 provider

2018-01-09 Thread Stodge
These are web services running on geographically separate servers. I'm hoping to prototype a single sign on service provider, and something like OpenID was one option. I just started looking into this. Thanks On Tuesday, 9 January 2018 19:20:40 UTC-5, Dave S wrote: > > > > On Tuesday, January 9

[web2py] Re: web2py gunicorn dockerfile

2018-01-09 Thread 黄祥
it works well, my bad, forgot about shell variable is translated when created file using cat thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

Re: {Disarmed} [web2py] Re: web2py OpenID or Oauth2 provider

2018-01-09 Thread Dave S
On Tuesday, January 9, 2018 at 12:26:03 PM UTC-8, Stodge wrote: > > That's a shame - I was just looking for a framework to prototype single > sign on for our website. > If you're primarily concerned about different web apps on the same server, would the CAS feature work for you? And web2py ca

Re: [web2py] Re: Apache + multidomain + SSL

2018-01-09 Thread Richard Vézina
Virtual host?? https://www.digicert.com/ssl-support/apache-multiple-ssl-certificates-using-sni.htm error ticket in production you shouldn't allow that it not secure... You can configure access through SSH tunnel port fowarding and run another web2py instance for this purpose... I am not recalling

[web2py] Re: auto increment field that reset evry year

2018-01-09 Thread Anthony
On Tuesday, January 9, 2018 at 11:03:02 AM UTC-5, Andrea Santini wrote: > > i was looking on the net and solved my problem using this code: > > > protocollo_ieri= db(db.protocollo.anno_registro).select().last() > ieri = protocollo_ieri.anno_registro.year > data = request.now > oggi = data.year > >

Re: {Disarmed} [web2py] Re: web2py OpenID or Oauth2 provider

2018-01-09 Thread Stodge
That's a shame - I was just looking for a framework to prototype single sign on for our website. On Tuesday, 5 December 2017 11:11:31 UTC-5, Carlos Cesar Caballero wrote: > > Thanks for your answer Massimo, I will study if is feasible to implement > that for this project, or I will use a 3rd par

Re: [web2py] Re: Apache + multidomain + SSL

2018-01-09 Thread Kenneth
Hi, I have a server running two versions of web2py. The other one runs 4-5 apps on own domains. Every domain will have it's own certificate. I have I one almost running correctly, the app works nicely but you can't open error tickets. But I'm not sure how to add more certificates. Kenneth

[web2py] Re: web2py webfaction unable to upload

2018-01-09 Thread Paulo
If usefull for someone googling, found the problem: after upgrading Fedora, for some stupid reason it changed the user permissions of the folder /var/lib/nginx/tmp/uwsgi/ (or nginx changed how it works with uwsgi and and created it for 1st time, not sure, don't remember). A simple "sudo chown -

[web2py] Re: auto increment field that reset evry year

2018-01-09 Thread Andrea Santini
i was looking on the net and solved my problem using this code: protocollo_ieri= db(db.protocollo.anno_registro).select().last() ieri = protocollo_ieri.anno_registro.year data = request.now oggi = data.year ultimo_protocollo = db(db.protocollo).select(db.protocollo.numero_protocollo,orderby=~db

[web2py] Re: web2py gunicorn dockerfile

2018-01-09 Thread 黄祥
thanks again alex, when executed same like previous tested in https://labs.play-with-docker.com, return an error (acceptable i think because the link and port provided is work (shown web2py welcome apps) ) *error traceback* PING 172.25.0.23 (172.25.0.23): 56 data bytes --- 172.25.0.23 ping stati

[web2py] Is there a way to put icon or image picker in form?

2018-01-09 Thread Dragan Matic
I would like to have an icon or image picker in form where user could choose from a set of predefined icons. Form would contain a few other fields like a title, text and an icon that would visually mark the topic of the text. Icons could be either pictures in 'static' folder or in 'uploads' (si

[web2py] Re: web2py gunicorn dockerfile

2018-01-09 Thread Alex Beskopilny
small fix - use dockerDNS 1 # run.sh docker rm $(docker stop $(docker ps -a -q --filter ancestor=w2pnginx --format="{{.ID}}")) docker rm $(docker stop $(docker ps -a -q --filter ancestor=w2pguni --format="{{.ID}}")) docker network rm w2pnet docker network create --subnet=172.25.0.0/16 w2pnet d

[web2py] Re: web2py gunicorn dockerfile

2018-01-09 Thread 黄祥
thanks alex, tested in https://labs.play-with-docker.com, it works fine never thought to combine it with gunicorn and make nginx as a reverse proxy (correct me if i'm wrong, still not sure the different with forward proxy yet, hehe) and never thought to build some dockerfiles make it into 1 bash

[web2py] Re: web2py gunicorn dockerfile

2018-01-09 Thread Alex Beskopilny
four files in same directory 1 #guniDoc FROM python:2.7 RUN apt update && apt install -y unzip wget ENV PATH=/usr/local/bin:$PATH RUN pip install gunicorn RUN useradd -m -r web2py USER web2py WORKDIR /home/web2py RUN wget -c http://web2py.com/examples/static/web2py_src.zip && \ unzip -o