Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
d100a790
Commit
d100a790
authored
Jun 22, 2014
by
Michael Kropat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove API_KEY_FILE setting
parent
554a2847
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
auth.py
management/auth.py
+1
-1
start.sh
setup/start.sh
+0
-1
No files found.
management/auth.py
View file @
d100a790
...
@@ -15,7 +15,7 @@ class KeyAuthService:
...
@@ -15,7 +15,7 @@ class KeyAuthService:
def
__init__
(
self
,
env
):
def
__init__
(
self
,
env
):
self
.
auth_realm
=
DEFAULT_AUTH_REALM
self
.
auth_realm
=
DEFAULT_AUTH_REALM
self
.
key
=
self
.
_generate_key
()
self
.
key
=
self
.
_generate_key
()
self
.
key_path
=
env
.
get
(
'API_KEY_FILE'
)
or
DEFAULT_KEY_PATH
self
.
key_path
=
DEFAULT_KEY_PATH
def
write_key
(
self
):
def
write_key
(
self
):
"""Write key to file so authorized clients can get the key
"""Write key to file so authorized clients can get the key
...
...
setup/start.sh
View file @
d100a790
...
@@ -118,7 +118,6 @@ PUBLIC_HOSTNAME=$PUBLIC_HOSTNAME
...
@@ -118,7 +118,6 @@ PUBLIC_HOSTNAME=$PUBLIC_HOSTNAME
PUBLIC_IP=
$PUBLIC_IP
PUBLIC_IP=
$PUBLIC_IP
PUBLIC_IPV6=
$PUBLIC_IPV6
PUBLIC_IPV6=
$PUBLIC_IPV6
CSR_COUNTRY=
$CSR_COUNTRY
CSR_COUNTRY=
$CSR_COUNTRY
API_KEY_FILE=/var/lib/mailinabox/api.key
EOF
EOF
# Start service configuration.
# Start service configuration.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment