File tree Expand file tree Collapse file tree 5 files changed +43
-19
lines changed Expand file tree Collapse file tree 5 files changed +43
-19
lines changed Original file line number Diff line number Diff line change 5
5
6
6
{
7
7
key_type p256
8
- email mac @pse.dev # for acme
8
+ email hendrik @pse.dev # for acme
9
9
servers {
10
10
metrics
11
11
}
26
26
# will always deliver to :4000 if its up, but if :4000 is down for more than 4s it trys the next one
27
27
# # # #
28
28
29
- notary.codes {
30
- handle_path /v0.1.0-alpha.8* {
31
- reverse_proxy :4003 :3333 {
32
- lb_try_duration 4s
33
- fail_duration 10s
34
- lb_policy header X-Upstream {
35
- fallback first
36
- }
37
- }
38
- }
29
+ notary.pse.dev {
39
30
handle_path /v0.1.0-alpha.7* {
40
- reverse_proxy :4002 :3333 {
31
+ reverse_proxy :4007 :3333 {
41
32
lb_try_duration 4s
42
33
fail_duration 10s
43
34
lb_policy header X-Upstream {
@@ -66,7 +57,7 @@ notary.codes {
66
57
}
67
58
68
59
handle_path /proxy* {
69
- reverse_proxy :55688 proxy.notary.codes:443 {
60
+ reverse_proxy :55688 {
70
61
lb_try_duration 4s
71
62
fail_duration 10s
72
63
lb_policy header X-Upstream {
Original file line number Diff line number Diff line change @@ -77,4 +77,37 @@ docker build -t tee_hendrik .
77
77
docker tag tee_hendrik notaryserverbuilds/tee_hendrik
78
78
docker images
79
79
docker push notaryserverbuilds.azurecr.io/tee_hendrik
80
+ ```
81
+
82
+
83
+ ## Install Intel SGX software
84
+
85
+ https://download.01.org/intel-sgx/latest/dcap-latest/linux/docs/Intel_SGX_SW_Installation_Guide_for_Linux.pdf
86
+
87
+ ```
88
+ wget https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key
89
+ cat intel-sgx-deb.key | sudo tee /etc/apt/keyrings/intel-sgx-keyring.asc > /dev/null
90
+
91
+ # Add the following repository to your sources:
92
+ echo 'deb [signed-by=/etc/apt/keyrings/intel-sgx-keyring.asc arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu noble main' | sudo tee /etc/apt/sources.list.d/intel-sgx.list
93
+
94
+
95
+ sudo apt-get update
96
+ sudo apt-get install libsgx-epid libsgx-quote-ex libsgx-dcap-ql -y
97
+ ```
98
+
99
+ Note: when I first got it working I also installed this: (not sure if this is necessary)
100
+ # sudo apt-get install build-essential ocaml automake autoconf libtool wget python-is-python3 libssl-dev -y
101
+
102
+
103
+ ## Install Caddy
104
+
105
+ https://caddyserver.com/docs/install#debian-ubuntu-raspbian
106
+
107
+ ```
108
+ sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
109
+ curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
110
+ curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
111
+ sudo apt update
112
+ sudo apt install caddy
80
113
```
Original file line number Diff line number Diff line change @@ -24,17 +24,17 @@ get_last_port() {
24
24
grep -Po " reverse_proxy :([0-9]+)" " $CADDYFILE " | awk -F: ' {print $2}' | sort -n | tail -1
25
25
}
26
26
27
- # Function to add a new handle_path block with incremented port inside notary.codes block
27
+ # Function to add a new handle_path block with incremented port inside notary.pse.dev block
28
28
add_new_handle_path () {
29
29
local new_port=$1
30
30
local commit_hash=$2
31
31
32
32
# Use a temporary file for inserting the handle_path block
33
33
tmp_file=$( mktemp)
34
34
35
- # Add the new handle_path in the notary.codes block
35
+ # Add the new handle_path in the notary.pse.dev block
36
36
awk -v port=" $new_port " -v hash=" $commit_hash " '
37
- /notary\.codes \{/ {
37
+ /notary\.pse\.dev \{/ {
38
38
print;
39
39
print " handle_path /" hash "* {";
40
40
print " reverse_proxy :" port " :3333 {";
70
70
fi
71
71
new_port=$(( last_port + 1 ))
72
72
73
- # Add the new handle_path block inside notary.codes block
73
+ # Add the new handle_path block inside notary.pse.dev block
74
74
add_new_handle_path " $new_port " " $GIT_COMMIT_HASH "
75
75
echo $new_port
76
76
# commit the changes
Original file line number Diff line number Diff line change 1
1
server :
2
- name : " notary-server "
2
+ name : " notary.pse.dev "
3
3
host : " 0.0.0.0"
4
4
port : 7047
5
5
html_info : |
Original file line number Diff line number Diff line change 1
1
server :
2
- name : " notary.codes "
2
+ name : " notary.pse.dev "
3
3
host : " 0.0.0.0"
4
4
port : 7047
5
5
html_info : |
You can’t perform that action at this time.
0 commit comments