-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from freeipa/drop_captcha_key
Drop captcha key_location and auto-create key file
- Loading branch information
Showing
12 changed files
with
172 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,4 @@ __pycache__ | |
|
||
# testing infrastrucutre | ||
/.tox | ||
/resets.db | ||
/captcha.db | ||
/key | ||
/var |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Authors: | ||
# Christian Heimes <[email protected]> | ||
# | ||
# Copyright (C) 2015 Red Hat | ||
# see file 'COPYING' for use and warranty information | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
"""Entry point for development server | ||
Copy your keytab to ./var/portal.keytab and run:: | ||
python2.7 -m freeipa_community_portal | ||
""" | ||
import cherrypy | ||
|
||
from freeipa_community_portal import app | ||
from freeipa_community_portal.config import config | ||
|
||
config.load(config.development_config) | ||
|
||
# 8080 is occupied by Dogtag | ||
cherrypy.config.update({ | ||
'server.socket_host': '127.0.0.1', | ||
'server.socket_port': 10080, | ||
}) | ||
|
||
cherrypy.quickstart( | ||
app.app(), | ||
'/', | ||
app.conf | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,6 @@ [email protected] | |
# the address to send admin mail to | ||
default_admin_email[email protected] | ||
|
||
[Captcha] | ||
# the location of the key | ||
key_location=/var/lib/freeipa_community_portal/key | ||
|
||
[Database] | ||
# the directory where we store our databases | ||
db_directory=/var/lib/freeipa_community_portal/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,18 +18,12 @@ [email protected] | |
# the address to send admin mail to | ||
default_admin_email[email protected] | ||
|
||
[Captcha] | ||
|
||
# the location of the key | ||
key_location=key | ||
|
||
[Database] | ||
|
||
# the directory where we store our databases | ||
db_directory= | ||
db_directory=var/ | ||
|
||
[KRB5] | ||
# set KRB5_CLIENT_KTNAME if non-empty | ||
client_keytab=portal.keytab | ||
client_keytab=var/portal.keytab | ||
# set KRB5CCNAME if non-empty | ||
ccache_name= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.