Skip to content

Commit

Permalink
use repo dyne/W3C-DID-data
Browse files Browse the repository at this point in the history
  • Loading branch information
albertolerda authored and jaromil committed Jan 10, 2023
1 parent a001367 commit ec3acf6
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 15 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8


[**/*.bats]
indent_style = tab
indent_size = 8

[did-explorer/**/*.tsx]
indent_style = space
indent_size = 4
16 changes: 4 additions & 12 deletions devops/roles/controller/tasks/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,12 @@
group: controller
recurse: yes

- name: Copy data (permissions may be wrong)
# TODO: use ssh instead of http
- name: Clone data dir
become: true
synchronize:
src: "../data"
dest: "{{ data_dir }}"
owner: no
group: no

- name: Fix contracts permissions
file:
ansible.builtin.git:
repo: https://github.com/dyne/W3C-DID-data.git
dest: "{{ data_dir }}/data"
owner: controller
group: controller
recurse: yes

- name: Download pm2 ecosystem
become: true
Expand Down
11 changes: 11 additions & 0 deletions devops/roles/controller/tasks/user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,14 @@
copy:
src: .bashrc
dest: /home/controller/.bashrc

- name: Add ssh private key
copy:
src: "{{ github_key }}"
dest: /home/controller/.ssh/{{ github_key }}

- name: Add ssh config
template:
src: sshconfig.j2
dest: /home/controller/.ssh/config
mode: '0600'
5 changes: 4 additions & 1 deletion devops/roles/controller/templates/nginx.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ server {
listen [::]:80;
root /var/www/html;
server_name {{ domain_name }};
return 301 https://$host$request_uri;
# return 301 https://$host$request_uri;
location / {
proxy_pass http://127.0.0.1:{{ local_port }}/;
}
}
5 changes: 5 additions & 0 deletions devops/roles/controller/templates/sshconfig.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Host github.com
User git
Hostname github.com
PreferredAuthentications publickey
IdentityFile /home/controller/.ssh/{{ github_key }}
2 changes: 1 addition & 1 deletion devops/staging.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#95.217.212.123
did.dyne.org domain_name=did.dyne.org
did.dyne.org domain_name=did.dyne.org github_key=production-w3c-did
2 changes: 1 addition & 1 deletion did-explorer/components/Copy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ const Copy = ({ text }: { text: string }) => {
)
}

export default Copy
export default Copy

0 comments on commit ec3acf6

Please sign in to comment.