forked from axiom-team/astrXbian
réflexion et proposition de solutions
This commit is contained in:
parent
98783b035f
commit
f06bac4086
|
@ -104,4 +104,9 @@ fi
|
||||||
# [[ ! $(ipfs p2p ls | grep '/x/10101') ]] && ipfs --timeout=5s ping -n 1 /p2p/$IPFSNODEID && ipfs p2p forward /x/10101 /ip4/127.0.0.1/tcp/20101 /p2p/$IPFSNODEID
|
# [[ ! $(ipfs p2p ls | grep '/x/10101') ]] && ipfs --timeout=5s ping -n 1 /p2p/$IPFSNODEID && ipfs p2p forward /x/10101 /ip4/127.0.0.1/tcp/20101 /p2p/$IPFSNODEID
|
||||||
# A l'autre boût on sort domain=tata.toto.com ip=local port=20101 ssl=yes
|
# A l'autre boût on sort domain=tata.toto.com ip=local port=20101 ssl=yes
|
||||||
|
|
||||||
|
## PAR défaut tous publient ~/.zen/astrXbian/www/boris sur leur port 80 / 443 (pour éxécuter l'API PHP)
|
||||||
|
|
||||||
|
# Ca ressemble au fonctionnement du ln -s ;)
|
||||||
|
# ipfs p2p ln -s /p2p/$IPFSNODEID/tcp/10101 /ip4/127.0.0.1/tcp/20101
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -17,6 +17,18 @@ server {
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /ipfs {
|
||||||
|
proxy_pass http://127.0.0.1:8181;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /ipns {
|
||||||
|
proxy_pass http://127.0.0.1:8181;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
}
|
||||||
|
|
||||||
error_log /var/log/nginx/$domain_error.log;
|
error_log /var/log/nginx/$domain_error.log;
|
||||||
access_log /var/log/nginx/$domain_access.log;
|
access_log /var/log/nginx/$domain_access.log;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue