Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
vl-cert
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vaclab
vl-cert
Commits
cb97c5af
Commit
cb97c5af
authored
2 years ago
by
Rolf Niepraschk
Browse files
Options
Downloads
Patches
Plain Diff
Environment-Variablen
parent
2e8f1abd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
get-cert-first
+7
-4
7 additions, 4 deletions
get-cert-first
vl-cert.service
+11
-7
11 additions, 7 deletions
vl-cert.service
vl-cert.timer
+2
-1
2 additions, 1 deletion
vl-cert.timer
with
20 additions
and
12 deletions
get-cert-first
+
7
−
4
View file @
cb97c5af
#! /bin/sh
PUB_KEY_SOURCE
=
"/etc/letsencrypt/live/a75436.berlin.ptb.de/fullchain.pem"
PUB_KEY_DEST
=
"/etc/gitlab/ssl/a75436.berlin.ptb.de.crt"
PRIV_KEY_SOURCE
=
"/etc/letsencrypt/live/a75436.berlin.ptb.de/privkey.pem"
PRIV_KEY_DEST
=
"/etc/gitlab/ssl/a75436.berlin.ptb.de.key"
certbot certonly
\
--standalone
\
--non-interactive
\
...
...
@@ -14,9 +19,7 @@ certbot certonly \
# einmalig nötig (Beispiel: GitLab)
cp
-pL
/etc/letsencrypt/live/a75436.berlin.ptb.de/fullchain.pem
\
/etc/gitlab/ssl/a75436.berlin.ptb.de.crt
cp
-pL
/etc/letsencrypt/live/a75436.berlin.ptb.de/privkey.pem
\
/etc/gitlab/ssl/a75436.berlin.ptb.de.key
cp
-pvL
"
$PUB_KEY_SOURCE
"
"
$PUB_KEY_DEST
"
cp
-pvL
"
$PRIV_KEY_SOURCE
"
"
$PRIV_KEY_DEST
"
exit
This diff is collapsed.
Click to expand it.
vl-cert.service
+
11
−
7
View file @
cb97c5af
[Unit]
Description
=
Get a new certificate via ACME
-A
ccount
#
Documentation=
Description
=
Get a new certificate via ACME
a
ccount
Documentation
=
https://letsencrypt.org/de/docs/
[Service]
Type
=
oneshot
...
...
@@ -9,11 +9,15 @@ EnvironmentFile=-/etc/environment
Environment
=
XDG_CACHE_HOME=/var/tmp
Environment
=
HOST=%H
Environment
=
PUB_KEY_SOURCE="/etc/letsencrypt/live/a75436.berlin.ptb.de/fullchain.pem"
Environment
=
PUB_KEY_DEST="/etc/gitlab/ssl/a75436.berlin.ptb.de.crt"
Environment
=
PRIV_KEY_SOURCE="/etc/letsencrypt/live/a75436.berlin.ptb.de/privkey.pem"
Environment
=
PRIV_KEY_DEST="/etc/gitlab/ssl/a75436.berlin.ptb.de.key"
ExecStart
=
/bin/bash -lc
\
'certbot renew ;
\
cp -pL /etc/letsencrypt/live/a75436.berlin.ptb.de/fullchain.pem
\
/etc/gitlab/ssl/a75436.berlin.ptb.de.crt ;
\
cp -pL /etc/letsencrypt/live/a75436.berlin.ptb.de/privkey.pem
\
/etc/gitlab/ssl/a75436.berlin.ptb.de.key'
cp -pvL "$PUB_KEY_SOURCE" "$PUB_KEY_DEST" ;
\
cp -pvL "$PRIV_KEY_SOURCE" "$PRIV_KEY_DEST"'
# Anm: "certbot renew" nicht unbedingt nötig, da schon
# per certbot.timer /
certbot.service erledigt
#
per
"
certbot.timer
"
/
"
certbot.service
"
erledigt
, sofern aktiviert.
This diff is collapsed.
Click to expand it.
vl-cert.timer
+
2
−
1
View file @
cb97c5af
[Unit]
Description=Get a new certificate via ACME-Account (Timer)
Description=Get a new certificate via ACME account (Timer)
Documentation=https://letsencrypt.org/de/docs/
[Timer]
Persistent=false
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment