File tree Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const letsencryptConfig = '/etc/letsencrypt.ini';
1616const certbotCommand = 'certbot' ;
1717const archiver = require ( 'archiver' ) ;
1818const path = require ( 'path' ) ;
19- const { isArray } = require ( 'lodash' ) ;
19+ const { isArray } = require ( 'lodash' ) ;
2020
2121function 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' } ) ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments