-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-sync-sample.yaml
More file actions
129 lines (129 loc) · 3.78 KB
/
make-sync-sample.yaml
File metadata and controls
129 lines (129 loc) · 3.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
reset_cache: true
sync_collection:
src: .sync_collections
files:
- docker-compose.yaml
- .env
var:
auth:
username: root
privateKey: .ssh/openssh_nopassword
host: localhost
port: "221"
remotePath: /home/ubuntu/workspaces
credentials:
password: secret123
username: admin
one:
two: Hello from variable!
server:
host: example.com
port: "8080"
project_name: Workspaces Digital Ocean
devsync:
size_limit: 5 # in MB, 0 = no limit, default 0 (no limit)
# concurrency: number of parallel workers for SFTP and fallback transfers
# Increase to improve throughput; tune based on network and remote limits
concurrency: 8
# os_target: "linux" or "windows" - affects RemoteCommand syntax in direct_access
os_target: linux
auth:
username: =var.auth.username
privateKey: =var.auth.privateKey
password: =var.credentials.password
host: =var.auth.host
port: =var.auth.port
remotePath: =var.auth.remotePath
ignores: []
agent_watchs:
- artywiz_hotfix/storage/logs/
manual_transfer:
- artywiz_broadcast_service/node_modules
- .ssh
- artywiz_hotfix_webapp
- artywiz_hotfix/vendor
- artywiz_hotfix/.github
script:
local:
on_ready: ""
on_stop: ""
commands:
- npm run build
- npm run dev
- npm test
remote:
on_ready: ""
on_stop: ""
commands:
- docker-compose ps
- docker-compose logs -f
- docker-compose restart
trigger_permission:
unlink_folder: false
unlink: false
change: true
add: true
direct_access:
config_file: ""
ssh_configs:
# For Windows targets, use: RemoteCommand: cmd /K cd =remotePath
# For Linux targets, use: RemoteCommand: cd =remotePath && bash -l
- Host: workspaces_digital_ocean
HostName: 45.55.35.150
IdentityFile: =var.auth.privateKey
Port: "22"
RemoteCommand: =var.one.two
RequestTty: force
ServerAliveCountMax: "2"
ServerAliveInterval: "300"
StrictHostKeyChecking: "no"
User: ubuntu
- Host: workspaces_as_root_digital_ocean
HostName: 45.55.35.150
IdentityFile: =var.auth.privateKey
Port: "22"
ProxyCommand: ssh -v workspaces_digital_ocean -W [%h]:[%p]
RemoteCommand: cd /home/ubuntu/workspaces && bash -l
RequestTty: force
ServerAliveCountMax: "2"
ServerAliveInterval: "300"
StrictHostKeyChecking: "no"
User: root
- Host: workspace_internal_digital_ocean
HostName: localhost
IdentityFile: =var.auth.privateKey
Port: "221"
RemoteCommand: cd /home/ubuntu/workspaces && bash -l
RequestTty: force
ServerAliveCountMax: "2"
ServerAliveInterval: "10"
StrictHostKeyChecking: "no"
User: root
- Host: artywiz_ovh_de
HostName: your.server.example.com
User: ubuntu
IdentityFile: ~/.ssh/id_rsa
Port: "22"
ssh_commands:
- access_name: Run devsync2
command: ngi-sync devsync2
- access_name: Enter ForwardPort Workspaces Digital Ocean
command: ssh -v -L 221:localhost:22 workspaces_as_root_digital_ocean
- access_name: Enter Server Digital Ocean
command: ssh -v workspace_internal_digital_ocean
- access_name: Enter Docker Jumper Digital Ocean
command: ssh -v -o RemoteCommand=none workspace_internal_digital_ocean -t docker exec -it docker_jumper bash
- access_name: NPM + Portainer via SSH Tunnel
port_forwards:
- name: npm-dashboard
host: artywiz_ovh_de
remote_host: 127.0.0.1
remote_port: 81
local_host: 127.0.0.1
local_port: 8181
- name: portainer-http
host: artywiz_ovh_de
remote_host: 127.0.0.1
remote_port: 9000
local_host: 127.0.0.1
local_port: 1800