-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathNOTES.txt
More file actions
81 lines (61 loc) · 2.64 KB
/
Copy pathNOTES.txt
File metadata and controls
81 lines (61 loc) · 2.64 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
{{ $protocol := .Values.ingress.default.tls | ternary "https" "http" -}}
Your site is available at:
{{ $protocol }}://{{- template "drupal.domain" . }}
{{- range $index, $prefix := .Values.domainPrefixes }}
{{- $params := dict "prefix" $prefix }}
{{ $protocol}}://{{ template "drupal.domain" (merge $params $ ) }}
{{- end }}
{{- range $index, $domain := .Values.exposeDomains }}
{{- if $domain.ssl }}
{{- if $domain.ssl.enabled }}
https://{{ $domain.hostname }}
{{- end }}
{{- else }}
http://{{ $domain.hostname }}
{{- end }}
{{- end }}
{{- if .Values.mailhog.enabled }}
Mailhog available at:
http://{{- template "drupal.domain" . }}/mailhog
{{- range $index, $domain := .Values.exposeDomains }}
http://{{ $domain.hostname }}/mailhog
{{- end }}
⚠️ **DEPRECATED** mailhog is deprecated and will be removed in the future, use mailpit instead
See: https://wunderio.github.io/silta/docs/silta-examples#sending-e-mail
{{- end }}
{{- if .Values.mailpit.enabled }}
Mailpit available at:
http://{{- template "drupal.domain" . }}/mailpit
{{- range $index, $domain := .Values.exposeDomains }}
http://{{ $domain.hostname }}/mailpit
{{- end }}
{{- end }}
{{- if .Values.nginx.basicauth.enabled }}
Basic access authentication credentials:
Username: {{ .Values.nginx.basicauth.credentials.username }}
Password: {{ .Values.nginx.basicauth.credentials.password }}
{{- end }}
{{- if .Values.shell.enabled }}
SSH connection (limited access through VPN):
ssh {{ include "drupal.shellHost" . }} -J {{ include "drupal.jumphost" . }}
Downloading data from server
Downloading database:
ssh {{ include "drupal.shellHost" . }} -J {{ include "drupal.jumphost" . }} "drush sql-dump" > my_database_dump.sql
{{ range $index, $mount := .Values.mounts -}}
{{ if eq $mount.enabled true -}}
Downloading files from {{ $index }}:
rsync -azv -e 'ssh -A -J {{ include "drupal.jumphost" $ }}' {{ include "drupal.shellHost" $ }}:{{ $mount.mountPath }} local_folder/
{{ end }}
{{ end -}}
Downloading any file or folder:
rsync -chavzP -e "ssh -A -J {{ include "drupal.jumphost" . }}" {{ include "drupal.shellHost" . }}:/app/remote-filename ./
Importing data into server (use this with caution!)
Importing database:
ssh {{ include "drupal.shellHost" . }} -J {{ include "drupal.jumphost" . }} "drush sql-cli" < my_database_dump.sql
{{ range $index, $mount := .Values.mounts -}}
{{ if eq $mount.enabled true -}}
Uploading files to {{ $index }}:
rsync -azv --temp-dir=/tmp/ -e 'ssh -A -J {{ include "drupal.jumphost" $ }}' local_folder/ {{ include "drupal.shellHost" $ }}:{{ $mount.mountPath }}
{{ end }}
{{ end -}}
{{- end -}}