Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge develop #48

Merged
merged 4 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions ansible/roles/chatbotGeneration/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,12 @@

- name: Auto renew SSL certificate
become: yes
command:
cmd: 'certbot renew --pre-hook "ufw allow 80/tcp" --post-hook "ufw deny 80/tcp"'
cron:
name: "certbot renew"
minute: "0"
hour: "0"
month: "1"
job: 'certbot renew --pre-hook "ufw allow 80/tcp" --post-hook "ufw deny 80/tcp"'
when: botDomain is defined and botDomain is not none and botDomain != ""

#- name: Update nginx site conf to use http2
Expand Down
10 changes: 10 additions & 0 deletions ansible/roles/usineConfiguration/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@
cmd: 'certbot --nginx -d {{ DOMAIN }} -n --redirect --agree-tos -m vincent.laine@beta.gouv.fr'
when: DOMAIN is defined and DOMAIN != ""

- name: Auto renew SSL certificate
become: yes
cron:
name: "certbot renew"
minute: "0"
hour: "0"
month: "1"
job: 'certbot renew --pre-hook "ufw allow 80/tcp" --post-hook "ufw deny 80/tcp"'
when: DOMAIN is defined and DOMAIN != ""

- name: Close port 80 after SSL certificate
become: yes
when: DOMAIN is defined and DOMAIN != ""
Expand Down
6 changes: 0 additions & 6 deletions back/env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,5 @@ HOST_URL=http://localhost:4200

JWT_SECRET=jwt_secret

OBJECT_STORAGE_USER=user
OBJECT_STORAGE_PASSWORD=password
OBJECT_STORAGE_ID=id
OBJECT_STORAGE_REGION=paris
OBJECT_STORAGE_CONTAINER_NAME=fabrique_bots

REDIS_HOST=localhost
REDIS_PORT=6379
Loading
Loading