Initial commit
Dieser Commit ist enthalten in:
21
v2_nginx/Dockerfile.letsencrypt
Normale Datei
21
v2_nginx/Dockerfile.letsencrypt
Normale Datei
@ -0,0 +1,21 @@
|
||||
FROM nginx:alpine
|
||||
|
||||
# Certbot für Let's Encrypt installieren
|
||||
RUN apk add --no-cache certbot certbot-nginx
|
||||
|
||||
# SSL-Verzeichnis erstellen
|
||||
RUN mkdir -p /etc/nginx/ssl
|
||||
|
||||
# Default config entfernen
|
||||
RUN rm -f /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Nginx-Konfiguration kopieren
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
# Entrypoint für Certbot
|
||||
COPY entrypoint-letsencrypt.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
EXPOSE 80 443
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren