Skip to content

Commit c86a1a5

Browse files
author
Julian Reinhardt
committed
Fixes formatting
1 parent c55476b commit c86a1a5

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

backend/internal/certificate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const letsencryptConfig = '/etc/letsencrypt.ini';
1616
const certbotCommand = 'certbot';
1717
const archiver = require('archiver');
1818
const path = require('path');
19-
const { isArray } = require('lodash');
19+
const { isArray } = require('lodash');
2020

2121
function omissions() {
2222
return ['is_deleted'];
@@ -1134,7 +1134,7 @@ const internalCertificate = {
11341134
}
11351135

11361136
// Create a test challenge file
1137-
const testChallengeDir = '/data/letsencrypt-acme-challenge/.well-known/acme-challenge';
1137+
const testChallengeDir = '/data/letsencrypt-acme-challenge/.well-known/acme-challenge';
11381138
const testChallengeFile = testChallengeDir + '/test-challenge';
11391139
fs.mkdirSync(testChallengeDir, {recursive: true});
11401140
fs.writeFileSync(testChallengeFile, 'Success', {encoding: 'utf8'});

backend/routes/api/nginx/certificates.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,26 +73,26 @@ router
7373
*
7474
* /api/nginx/certificates/test-http
7575
*/
76-
router
77-
.route('/test-http')
78-
.options((req, res) => {
79-
res.sendStatus(204);
80-
})
81-
.all(jwtdecode())
76+
router
77+
.route('/test-http')
78+
.options((req, res) => {
79+
res.sendStatus(204);
80+
})
81+
.all(jwtdecode())
8282

8383
/**
8484
* GET /api/nginx/certificates/test-http
8585
*
8686
* Test HTTP challenge for domains
8787
*/
88-
.get((req, res, next) => {
89-
internalCertificate.testHttpsChallenge(res.locals.access, JSON.parse(req.query.domains))
90-
.then((result) => {
91-
res.status(200)
92-
.send(result);
93-
})
94-
.catch(next);
95-
});
88+
.get((req, res, next) => {
89+
internalCertificate.testHttpsChallenge(res.locals.access, JSON.parse(req.query.domains))
90+
.then((result) => {
91+
res.status(200)
92+
.send(result);
93+
})
94+
.catch(next);
95+
});
9696

9797
/**
9898
* Specific certificate

0 commit comments

Comments
 (0)