Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nginx-proxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
nginx-proxy
Commits
0a244950
Commit
0a244950
authored
Jan 16, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update src/acme.ts, src/site.ts files
parent
c5af1036
Pipeline
#32617
passed with stages
in 22 minutes and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
src/acme.ts
src/acme.ts
+6
-1
src/site.ts
src/site.ts
+1
-1
No files found.
src/acme.ts
View file @
0a244950
...
@@ -2,11 +2,16 @@ import { createServer } from 'http';
...
@@ -2,11 +2,16 @@ import { createServer } from 'http';
import
acme
,
{
Client
}
from
'
acme-client
'
;
import
acme
,
{
Client
}
from
'
acme-client
'
;
import
fs
from
'
fs
'
;
import
fs
from
'
fs
'
;
import
path
from
'
path
'
;
import
path
from
'
path
'
;
import
{
pickCert
}
from
'
./check-cert
'
;
let
email
:
string
;
let
email
:
string
;
export
const
domainsToBeSigned
:
string
[]
=
[];
export
const
domainsToBeSigned
:
string
[]
=
[];
export
function
addSignCert
(
domains
:
string
[],
payload
:
string
)
{
export
async
function
addSignCert
(
domains
:
string
[],
payload
:
string
)
{
const
pickedCert
=
await
pickCert
(
domains
);
if
(
pickedCert
)
{
return
pickedCert
;
}
domainsToBeSigned
.
push
(...
domains
);
domainsToBeSigned
.
push
(...
domains
);
if
(
!
email
)
{
if
(
!
email
)
{
// acme://
// acme://
...
...
src/site.ts
View file @
0a244950
...
@@ -125,7 +125,7 @@ async function getSiteData(
...
@@ -125,7 +125,7 @@ async function getSiteData(
const
domains
=
hostname
.
split
(
'
+
'
);
const
domains
=
hostname
.
split
(
'
+
'
);
if
(
httpsCert
!==
'
0
'
&&
httpsCert
!==
'
false
'
)
{
if
(
httpsCert
!==
'
0
'
&&
httpsCert
!==
'
false
'
)
{
const
cert
=
httpsCert
?.
startsWith
(
'
acme://
'
)
const
cert
=
httpsCert
?.
startsWith
(
'
acme://
'
)
?
addSignCert
(
domains
,
httpsCert
)
?
a
wait
a
ddSignCert
(
domains
,
httpsCert
)
:
!
httpsCert
||
:
!
httpsCert
||
httpsCert
===
'
1
'
||
httpsCert
===
'
1
'
||
httpsCert
===
'
true
'
||
httpsCert
===
'
true
'
||
...
...
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