Skip to content

Commit b9b676c

Browse files
committed
SFTPGo config
1 parent 8c466ab commit b9b676c

File tree

6 files changed

+16
-9
lines changed

6 files changed

+16
-9
lines changed

home/dot_local/etc/cloudflared/config.yml.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ ingress:
2222
service: localhost:8445
2323
- hostname: vnc.{{ $baseDomain }}
2424
service: tcp://localhost:5901
25+
- hostname: sftp.{{ $baseDomain }}
26+
service: tcp://localhost:2022
2527
{{- if eq .host.softwareGroup "Kubernetes" }}
2628
- hostname: k8s.{{ .host.domain }}
2729
service: bastion
@@ -37,4 +39,4 @@ ingress:
3739
# Rules can match the request's hostname to a wildcard character:
3840
# - hostname: "*.example.com"
3941
# service: https://localhost:8002
40-
- service: http_status:404
42+
- service: http_status:404

home/dot_local/etc/sftpgo/banner

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
WARNING! Authorized use only. Your IP address has been logged.
2+
3+
If you choose to ignore this warning and discover a vulnerability
4+
that you can explain how to remediate, then please contact brian@megabyte.space
5+
for a bounty.
14.7 KB
Binary file not shown.
12.4 KB
Loading
3.81 KB
Loading

home/dot_local/etc/sftpgo/sftpgo.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"macs": [],
9595
"trusted_user_ca_keys": [],
9696
"revoked_user_certs_file": "",
97-
"login_banner_file": "",
97+
"login_banner_file": "/etc/sftpgo/banner",
9898
"enabled_ssh_commands": [
9999
"md5sum",
100100
"sha1sum",
@@ -309,9 +309,9 @@
309309
"web_admin": {
310310
"name": "",
311311
"short_name": "",
312-
"favicon_path": "",
313-
"logo_path": "",
314-
"login_image_path": "",
312+
"favicon_path": "/branding/favicon.ico",
313+
"logo_path": "/branding/logo.png",
314+
"login_image_path": "/branding/login_image.png",
315315
"disclaimer_name": "",
316316
"disclaimer_path": "",
317317
"default_css": "",
@@ -320,9 +320,9 @@
320320
"web_client": {
321321
"name": "",
322322
"short_name": "",
323-
"favicon_path": "",
324-
"logo_path": "",
325-
"login_image_path": "",
323+
"favicon_path": "/branding/favicon.ico",
324+
"logo_path": "/branding/logo.png",
325+
"login_image_path": "/branding/login_image.png",
326326
"disclaimer_name": "",
327327
"disclaimer_path": "",
328328
"default_css": "",
@@ -413,4 +413,4 @@
413413
"templates_path": "templates"
414414
},
415415
"plugins": []
416-
}
416+
}

0 commit comments

Comments
 (0)