Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
script-autocert-apisix-with-acme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marwan
script-autocert-apisix-with-acme
Commits
7554cfca
Commit
7554cfca
authored
Oct 05, 2023
by
marwan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add acme script
parent
2c7a39b8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
install-acme.sh
+6
-0
issue.sh
+19
-0
No files found.
install-acme.sh
0 → 100644
View file @
7554cfca
curl
--output
/root/.acme.sh/renew-hook-update-apisix.sh
--silent
https://gist.githubusercontent.com/anjia0532/9ebf8011322f43e3f5037bc2af3aeaa6/raw/65b359a4eed0ae990f9188c2afa22bacd8471652/renew-hook-update-apisix.sh
chmod +x /root/.acme.sh/renew-hook-update-apisix.sh
/root/.acme.sh/renew-hook-update-apisix.sh
\ No newline at end of file
issue.sh
0 → 100644
View file @
7554cfca
export
GANDI_LIVEDNS_KEY
=
GANDI_LIVEDNS_KEY
PATH_BASE
=
/root/.acme.sh
DOMAIN
=
"*.SUBDOMAIN.DOMAIN"
APISIX_TOKEN
=
APISIX_TOKEN
APISIX_URI
=
"http://127.0.0.1:9180"
cd
${
PATH_BASE
}
#mkdir -p ${PATH_BASE}/${DOMAIN}
#issue cert
./acme.sh
--force
--issue
--staging
-d
"
${
DOMAIN
}
"
--renew-hook
\
"
${
PATH_BASE
}
/renew-hook-update-apisix.sh -h
${
APISIX_URI
}
\
-p
${
PATH_BASE
}
/
${
DOMAIN
}
_ecc/
${
DOMAIN
}
.cer
\
-k
${
PATH_BASE
}
/
${
DOMAIN
}
_ecc/
${
DOMAIN
}
.key
\
-a
${
APISIX_TOKEN
}
-t on"
\
--dns
dns_gandi_livedns
\
--log
#renew cert
./acme.sh
--renew
--domain
${
DOMAIN
}
\ No newline at end of file
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