Skip to content

Commit

Permalink
essais certbot dans conteneur pour ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
Khagou committed Apr 13, 2024
1 parent 8981712 commit 49857b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ on: # Triggers the workflow
# branches: # This workflow will run only for the main branch
# - blabla
push:
branches:
- logging
branches: [logging]

# permissions:
# pull-requests: write
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/raspberry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ jobs:
passphrase: ${{ secrets.RASPBERRY_PI_SSH_PASSPHRASE }}
script: |
cd Documents/
sudo docker-compose run --rm frontend certbot --nginx -d raspberry.khagu-dev.fr -d www.raspberry.khagu-dev.fr
sudo docker-compose run --rm frontend certbot renew --dry-run
sudo docker compose up -d
5 changes: 3 additions & 2 deletions client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM nginx:latest

RUN apt-get update -y

RUN apt-get update \
&& apt-get install -y certbot python-certbot-nginx

COPY ./build/ /usr/share/nginx/html

EXPOSE 80
Expand Down

0 comments on commit 49857b5

Please sign in to comment.