Skip to content

Commit

Permalink
Remove certificates.yml and cert.pem, and add kuramacert.pem and kura…
Browse files Browse the repository at this point in the history
…key.pem to playbook.yml
  • Loading branch information
etienne committed Feb 16, 2024
1 parent 4ced8fd commit a75604c
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 171 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/aws.yml → .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
ansible-galaxy collection install community.docker
echo "[all]" > inventory.ini
echo "my_instance ansible_host=${{secrets.ip_address}} ansible_user=hibo ansible_ssh_private_key_file=./private_key" >> inventory.ini
ansible-playbook -i inventory.ini playbook.yml --extra-vars "MONGO_INITDB_ROOT_USERNAME=${{ secrets.MONGO_INITDB_ROOT_USERNAME }} MONGO_INITDB_ROOT_PASSWORD=${{ secrets.MONGO_INITDB_ROOT_PASSWORD }} MONGO_INITDB_DATABASE=${{ secrets.MONGO_INITDB_DATABASE }} MONGODB_USER=${{ secrets.MONGODB_USER }} MONGODB_USER_PASSWORD=${{ secrets.MONGODB_USER_PASSWORD }} SITE_ADDRESS=${{secrets.ip_address}} ORIGIN_URL=${{ secrets.ORIGIN_URL }} NEXT_PUBLIC_BASE_URL=${{ secrets.NEXT_PUBLIC_BASE_URL }} PORT=${{ secrets.PORT }} DEBUG=${{ secrets.DEBUG }} JWT_SECRET=${{ secrets.JWT_SECRET }}"
ansible-playbook -i inventory.ini playbook.yml --extra-vars "MONGO_INITDB_ROOT_USERNAME=${{ secrets.MONGO_INITDB_ROOT_USERNAME }} MONGO_INITDB_ROOT_PASSWORD=${{ secrets.MONGO_INITDB_ROOT_PASSWORD }} MONGO_INITDB_DATABASE=${{ secrets.MONGO_INITDB_DATABASE }} MONGODB_USER=${{ secrets.MONGODB_USER }} MONGODB_USER_PASSWORD=${{ secrets.MONGODB_USER_PASSWORD }} SITE_ADDRESS=${{secrets.ip_address}} ORIGIN_URL=${{ secrets.ORIGIN_URL }} NEXT_PUBLIC_BASE_URL=${{ secrets.NEXT_PUBLIC_BASE_URL }} PORT=${{ secrets.PORT }} DEBUG=${{ secrets.DEBUG }} JWT_SECRET=${{ secrets.JWT_SECRET }} kuramacert=${{ secrets.kuramacert }} kuramakey=${{ secrets.kuramakey }}"
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ANSIBLE_HOST_KEY_CHECKING: False
Expand Down
59 changes: 0 additions & 59 deletions backend/src/cert/kurama.cert
Original file line number Diff line number Diff line change
@@ -1,59 +0,0 @@
-----BEGIN CERTIFICATE-----
MIIE/DCCA+SgAwIBAgISAxUCowQKpVSiSz5FacanaHi1MA0GCSqGSIb3DQEBCwUA
MDIxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQswCQYDVQQD
EwJSMzAeFw0yNDAyMTQxMTQ5MjZaFw0yNDA1MTQxMTQ5MjVaMBoxGDAWBgNVBAMT
D2t1cmFtYS1jaGF0Lnh5ejCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
AMrws5y2RrmtFJl4lYbnr6kZMguK8bYlG/M3sVTqflyEDAupVBg3nMF/AtPh1x4D
n5FiFztfBIRV8ES6qc7ulmmRBPW0Mtj0zvnMTm6Yt+m3JDJSzbSPKJbWdiLmSYSa
/B+ev96WFdDBsGYwuMEi8O9s79/gOmlorgslJA5cGMud6R6Ne/qJ7YTlQWUEOHGS
nPdUrP3IzMGKQ14RyOI0v3tj8Kn7gi8LsFrL9hlpXDBjZwIs04HTRL6ULcpPvFGO
BLzTvsQJ7VWdqSMt/nbPOqf4+Qaj9Zk/TwfnGGMgMx5bzNH+GhnInG6w7qASsm0W
scWAm/2rxEOxFxDhnw+F3sMCAwEAAaOCAiIwggIeMA4GA1UdDwEB/wQEAwIFoDAd
BgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDAYDVR0TAQH/BAIwADAdBgNV
HQ4EFgQUtq+mDZ24tr14unS/3aHU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3hUSFvNVneLKYY611TR6W
PTNlclQtgaDqw+34IL9fzLdwALduO/ZelN7kIJ+m74uyA+eitRY8kc607TkC53wl
ikfmZW4/RvTZ8M6UK+5UzhK8jCdLuMGYL6KvzXGRSgi3yLgjewQtCPkIVz6D2QQz
CkcheAmCJ8MqyJu5zlzyZMjAvnnAT45tRAxekrsu94sQ4egdRCnbWSDtY7kh+BIm
lJNXoB1lBMEKIq4QDUOXoRgffuDghje1WrG9ML+Hbisq/yFOGwXD9RiX8F6sw6W4
avAuvDszue5L3sz85K+EC4Y/wFVDNvZo4TYXao6Z0f+lQKc0t8DQYzk1OXVu8rp2
yJMC6alLbBfODALZvYH7n7do1AZls4I9d1P4jnkDrQoxB3UqQ9hVl3LEKQ73xF1O
yK5GhDDX8oVfGKF5u+decIsH4YaTw7mP3GFxJSqv3+0lUFJoi5Lc5da149p90Ids
hCExroL1+7mryIkXPeFM5TgO9r0rvZaBFOvV2z0gp35Z0+L4WPlbuEjN/lxPFin+
HlUjr8gRsI3qfJOQFy/9rKIJR0Y/8Omwt/8oTWgy1mdeHmmjk7j1nYsvC9JSQ6Zv
MldlTTKB3zhThV1+XWYp6rjd5JW1zbVWEkLNxE7GJThEUG3szgBVGP7pSWTUTsqX
nLRbwHOoq7hHwg==
-----END CERTIFICATE-----
27 changes: 0 additions & 27 deletions backend/src/cert/kurama.key
Original file line number Diff line number Diff line change
@@ -1,27 +0,0 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAyvCznLZGua0UmXiVhuevqRkyC4rxtiUb8zexVOp+XIQMC6lU
GDecwX8C0+HXHgOfkWIXO18EhFXwRLqpzu6WaZEE9bQy2PTO+cxObpi36bckMlLN
tI8oltZ2IuZJhJr8H56/3pYV0MGwZjC4wSLw72zv3+A6aWiuCyUkDlwYy53pHo17
+onthOVBZQQ4cZKc91Ss/cjMwYpDXhHI4jS/e2PwqfuCLwuwWsv2GWlcMGNnAizT
gdNEvpQtyk+8UY4EvNO+xAntVZ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vfTnBd2
tAlK4Cxok7rR3eyw3Nwknfj8n6SAuGyNeYOdPs23w+5wYv4eAQSGgabtE6EVq6hq
+rDAlwKBgQDnoNRDL7uHBiCfQ88DWtcrCL1ALsDqVW3M7XEnu6H4B6CcH0xVEMfn
XRE5+N9vSarhfoNM55JO/GV7ogjxOcBdlRjFzTADzPSquYz40jekHttZsv1Foxjh
zQMcjx8jTQxDHyzVmXdUcACGDwzI62ZVwlsl0MWb4raU5lVECt1NrA==
-----END RSA PRIVATE KEY-----
28 changes: 0 additions & 28 deletions cert.pem

This file was deleted.

4 changes: 0 additions & 4 deletions certificates.yml

This file was deleted.

52 changes: 0 additions & 52 deletions key.pem

This file was deleted.

10 changes: 10 additions & 0 deletions playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,16 @@
shell: docker network create web
when: web_network.stdout == ""

- name: kuramacert
copy:
dest: /var/deployment/backend/src/cert/kuramacert.pem
content: "{{ kuramacert }}"

- name: kurakey
copy:
dest: /var/deployment/backend/src/cert/kurakey.pem
content: "{{ kurakey }}"

- name: Set correct permissions for acme.json
file:
path: /var/deployment/volumes/traefik/acme/acme.json
Expand Down

0 comments on commit a75604c

Please sign in to comment.