Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
PUBLIC
/
surfer-okd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1a8d99e4
authored
Dec 30, 2015
by
Johannes Zellner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide separate healthcheck route
1 parent
fdb8868c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
CloudronManifest.json
app.js
CloudronManifest.json
View file @
1a8d99e
...
...
@@ -11,7 +11,7 @@
],
"version"
:
"0.4.2"
,
"targetBoxVersion"
:
"0.4.0"
,
"healthCheckPath"
:
"/"
,
"healthCheckPath"
:
"/
api/healthcheck
"
,
"httpPort"
:
3000
,
"manifestVersion"
:
1
,
"website"
:
"https://github.com/nebulade/surfer"
,
...
...
app.js
View file @
1a8d99e
...
...
@@ -27,6 +27,7 @@ var multipart = multipart({ maxFieldsSize: 2 * 1024, limit: '512mb', timeout: 3
router
.
get
(
'/api/files/*'
,
auth
.
ldap
,
files
.
get
);
router
.
put
(
'/api/files/*'
,
auth
.
ldap
,
multipart
,
files
.
put
);
router
.
delete
(
'/api/files/*'
,
auth
.
ldap
,
files
.
del
);
router
.
get
(
'/api/healthcheck'
,
function
(
req
,
res
)
{
res
.
status
(
200
).
send
();
});
// welcome screen in case / does not serve up any file yet
var
appUrl
=
process
.
env
.
APP_ORIGIN
?
process
.
env
.
APP_ORIGIN
:
'http://localhost:3000'
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment