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
85169dc9
Commit
85169dc9
authored
Jun 20, 2014
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preliminary support for webfinger
It just echos back the subject given to it.
parent
5faa1cae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
nginx.conf
conf/nginx.conf
+6
-0
web.sh
setup/web.sh
+4
-0
webfinger.php
tools/webfinger.php
+9
-0
No files found.
conf/nginx.conf
View file @
85169dc9
...
...
@@ -39,5 +39,11 @@ server {
client_max_body_size
20M
;
}
# Webfinger configuration.
location
=
/.well-known/webfinger
{
include
fastcgi_params
;
fastcgi_param
SCRIPT_FILENAME
/usr/bin/mailinabox-webfinger.php
;
fastcgi_pass
unix:/tmp/php-fastcgi.www-data.sock
;
}
}
setup/web.sh
View file @
85169dc9
...
...
@@ -31,6 +31,10 @@ rm -f /etc/init.d/php-fastcgi
ln
-s
$(
pwd
)
/conf/phpfcgi-initscript /etc/init.d/php-fastcgi
update-rc.d php-fastcgi defaults
# Put our webfinger server script into a well-known location.
cp
tools/webfinger.php /usr/bin/mailinabox-webfinger.php
chown
www-data.www-data /usr/bin/mailinabox-webfinger.php
# Start services.
service nginx restart
service php-fastcgi restart
...
...
tools/webfinger.php
0 → 100755
View file @
85169dc9
<?php
$resource
=
$_GET
[
'resource'
];
header
(
"Content-type: application/json"
);
echo
json_encode
(
array
(
subject
=>
$resource
,
),
JSON_PRETTY_PRINT
);
?>
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