Skip to content

Commit 596e2c7

Browse files
Serve www/index.html with config
1 parent 31fcb22 commit 596e2c7

File tree

5 files changed

+24
-12
lines changed

5 files changed

+24
-12
lines changed

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ root:~# git clone https://github.com/solid-contrib/pivot
2525
root:~# cd pivot
2626
root:~/pivot# npm ci --skip=dev
2727
root:~/pivot# npm run build
28-
root:~/pivot# mkdir -p ./data/www
29-
root:~/pivot# cp -r ./www data/
3028
root:~/pivot# npx community-solid-server -c ./config/prod.json -f ./data --httpsKey /etc/letsencrypt/live/pivot.pondersource.com-0001/privkey.pem --httpsCert /etc/letsencrypt/live/pivot.pondersource.com-0001/fullchain.pem -p 443 -b https://pivot.pondersource.com -m .
3129
2024-11-13T11:28:02.426Z [Components.js] info: Initiating component discovery from /root/pivot
3230
2024-11-13T11:28:02.919Z [Components.js] info: Discovered 169 component packages within 1345 packages

config/dev.json

+8
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@
4848
"filePath": "./templates/identity/password/login.html.ejs",
4949
"route": { "@id": "urn:solid-server:default:LoginPasswordRoute" }
5050
}
51+
},
52+
{
53+
"@type": "Override",
54+
"overrideInstance": { "@id": "urn:solid-server:default:RootStaticAsset" },
55+
"overrideParameters": {
56+
"@type": "StaticAssetEntry",
57+
"filePath": "www/index.html"
58+
}
5159
}
5260
]
5361
}

config/prod.json

+8
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@
126126
"filePath": "./templates/identity/password/login.html.ejs",
127127
"route": { "@id": "urn:solid-server:default:LoginPasswordRoute" }
128128
}
129+
},
130+
{
131+
"@type": "Override",
132+
"overrideInstance": { "@id": "urn:solid-server:default:RootStaticAsset" },
133+
"overrideParameters": {
134+
"@type": "StaticAssetEntry",
135+
"filePath": "www/index.html"
136+
}
129137
}
130138
]
131139
}

config/test.json

+8
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@
5050
"RecordObject:_record_value": { "@id": "urn:solid-server:default:ResourceStore" }
5151
}
5252
]
53+
},
54+
{
55+
"@type": "Override",
56+
"overrideInstance": { "@id": "urn:solid-server:default:RootStaticAsset" },
57+
"overrideParameters": {
58+
"@type": "StaticAssetEntry",
59+
"filePath": "www/index.html"
60+
}
5361
}
5462
]
5563
}

www/.acl

-10
This file was deleted.

0 commit comments

Comments
 (0)