-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathbookmarks.yml
More file actions
56 lines (55 loc) · 1.44 KB
/
bookmarks.yml
File metadata and controls
56 lines (55 loc) · 1.44 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
# using tobaru's html forwarding for bookmarks, inspired by https://github.com/yourselfhosted/slash
#
# $ curl -v http://127.0.0.1:8080/
# * Trying 127.0.0.1:8080...
# * Connected to 127.0.0.1 (127.0.0.1) port 8080
# > GET / HTTP/1.1
# > Host: 127.0.0.1:8080
# > User-Agent: curl/8.5.0
# > Accept: */*
# >
# < HTTP/1.1 302 Default Bookmark
# < Location: https://example.com
# < transfer-encoding: chunked
# < connection: close
# <
# * Closing connection
#
# $ curl -v http://127.0.0.1:8080/google
# * Trying 127.0.0.1:8080...
# * Connected to 127.0.0.1 (127.0.0.1) port 8080
# > GET /google HTTP/1.1
# > Host: 127.0.0.1:8080
# > User-Agent: curl/8.5.0
# > Accept: */*
# >
# < HTTP/1.1 302
# < Location: https://google.com
# < transfer-encoding: chunked
# < connection: close
# <
# * Closing connection
- address: 127.0.0.1:8080
iptables: false
target:
allowlist: 0.0.0.0/0
http_paths:
/google:
http_action:
type: serve-message
status_code: 302
response_headers:
Location: https://google.com
/bing:
http_action:
type: serve-message
status_code: 302
response_headers:
Location: https://bing.com
# serve a redirect to https://example.com for all paths that don't match.
default_http_action:
type: serve-message
status_code: 302
status_message: Default Bookmark
response_headers:
Location: https://example.com