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';
16
16
const certbotCommand = 'certbot' ;
17
17
const archiver = require ( 'archiver' ) ;
18
18
const path = require ( 'path' ) ;
19
- const { isArray } = require ( 'lodash' ) ;
19
+ const { isArray } = require ( 'lodash' ) ;
20
20
21
21
function omissions ( ) {
22
22
return [ 'is_deleted' ] ;
@@ -1134,7 +1134,7 @@ const internalCertificate = {
1134
1134
}
1135
1135
1136
1136
// 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' ;
1138
1138
const testChallengeFile = testChallengeDir + '/test-challenge' ;
1139
1139
fs . mkdirSync ( testChallengeDir , { recursive : true } ) ;
1140
1140
fs . writeFileSync ( testChallengeFile , 'Success' , { encoding : 'utf8' } ) ;
Original file line number Diff line number Diff line change @@ -73,26 +73,26 @@ router
73
73
*
74
74
* /api/nginx/certificates/test-http
75
75
*/
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 ( ) )
82
82
83
83
/**
84
84
* GET /api/nginx/certificates/test-http
85
85
*
86
86
* Test HTTP challenge for domains
87
87
*/
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
+ } ) ;
96
96
97
97
/**
98
98
* Specific certificate
You can’t perform that action at this time.
0 commit comments