Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter Datapod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
Duniter Datapod
Commits
4d706fcd
Commit
4d706fcd
authored
1 year ago
by
Hugo Trentesaux
Browse files
Options
Downloads
Patches
Plain Diff
add subdomain gateway
and volume for easier config
parent
1560e46e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker-compose.prod.yml
+3
-0
3 additions, 0 deletions
docker-compose.prod.yml
scripts/configure.sh
+8
-6
8 additions, 6 deletions
scripts/configure.sh
with
11 additions
and
6 deletions
docker-compose.prod.yml
+
3
−
0
View file @
4d706fcd
...
@@ -45,8 +45,10 @@ services:
...
@@ -45,8 +45,10 @@ services:
-
127.0.0.1:5001:5001
-
127.0.0.1:5001:5001
volumes
:
volumes
:
-
kubo_data:/data/ipfs
-
kubo_data:/data/ipfs
-
kubo_init:/container-init.d
environment
:
environment
:
KUBO_GATEWAY_DOMAIN
:
"
gateway.datapod.coinduf.eu"
KUBO_GATEWAY_DOMAIN
:
"
gateway.datapod.coinduf.eu"
KUBO_GATEWAY_SUBDOMAIN
:
"
subgateway.datapod.coinduf.eu"
restart
:
always
restart
:
always
# ------
# ------
...
@@ -69,3 +71,4 @@ services:
...
@@ -69,3 +71,4 @@ services:
volumes
:
volumes
:
db_data
:
db_data
:
kubo_data
:
kubo_data
:
kubo_init
:
This diff is collapsed.
Click to expand it.
scripts/configure.sh
+
8
−
6
View file @
4d706fcd
...
@@ -15,11 +15,13 @@ ipfs config API.HTTPHeaders.Access-Control-Allow-Methods --json '["PUT", "POST"]
...
@@ -15,11 +15,13 @@ ipfs config API.HTTPHeaders.Access-Control-Allow-Methods --json '["PUT", "POST"]
# --- gateway ---
# --- gateway ---
# prevent gateway from fetching foreign data
# prevent gateway from fetching foreign data
ipfs config Gateway.NoFetch
--json
true
# ipfs config Gateway.NoFetch --json true
# allow to expose hostname
# ipfs config Gateway.NoFetch --json false
ipfs config Gateway.PublicGateways
--json
"{
\"
$KUBO_GATEWAY_DOMAIN
\"
:{
\"
UseSubdomains
\"
: false,
\"
Paths
\"
:[
\"
/ipfs
\"
]}}"
# public gateway without subdomain (no wildcard)
# enables /ipfs and /routing (delegated routing)
# public gateway with subdomain (needs wildcard)
ipfs config Gateway.PublicGateways
--json
"{
\"
$KUBO_GATEWAY_DOMAIN
\"
:{
\"
UseSubdomains
\"
:false,
\"
Paths
\"
:[
\"
/ipfs
\"
,
\"
/routing
\"
]},
\"
$KUBO_GATEWAY_SUBDOMAIN
\"
:{
\"
UseSubdomains
\"
:true,
\"
Paths
\"
:[
\"
/ipfs
\"
,
\"
/routing
\"
]}}"
# only reprovide pinned data
# only reprovide pinned data
ipfs config Reprovider.Strategy
"pinned"
# ipfs config Reprovider.Strategy "pinned"
# ipfs config Reprovider.Strategy --json null
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment