aragon / apm-serve Goto Github PK
View Code? Open in Web Editor NEWWeb 2.0 server for Web 3.0 APM hosted dApps
Home Page: https://aragon.mainnet.aragonpm.com
License: GNU General Public License v3.0
Web 2.0 server for Web 3.0 APM hosted dApps
Home Page: https://aragon.mainnet.aragonpm.com
License: GNU General Public License v3.0
Now the testnet name is the least significant part of the URL
dapp.rinkeby.aragonpm.com
-> rinkeby.dapp.aragonpm.com
apm-serve currently tries to fetch content provided in a package.
For example, aragon.mainnet.aragonpm.com/manifest.json
fetches the deployment manifest.json, but aragon.mainnet.aragonpm.com/organization
may be a common typo and should at least redirect to the index.
Given that apm-serve is only serving as a gateway to frontends deployed on aragonPM, redirecting to /
(to get the index.html, if one exists) is akin to what would need to happen with SPA-based routers anyway.
By my personal preference order:
Basically revert #3.
This will ease creating SSL certificates for aragonpm.com, as we can get wildcard certs for *.[network].aragonpm.com
for all the networks that we support.
During deployments, mainnet.aragon.org and rinkeby.aragon.org usually come down for a few minutes because apm-serve is trying to get the latest content that the connected IPFS node doesn't know have cached yet.
Ideally we would wait a maximum of 500ms to 1s on resolving the latest version of a package, before falling back to loading the last version.
To avoid having false fallbacks in times of high load, we could cache whether we've been able to serve a version of a package and avoid doing the fallback if so.
The express-subdomain
middleware needs to be able to calculate the subdomain for arbitrary length hosts like aragonpm.com
or aragonpm-test.aragon.network
. The default "subdomain offset" property for express is 2, this needs to be calculated dynamically based on the value of APMSERVE_HOST
.
For background see:
bmullan91/express-subdomain#17
bmullan91/express-subdomain#17 (comment)
http://expressjs.com/en/4x/api.html#app.settings.table
dapp.rinkeby.aragonpm.com
-> rinkeby.dapp.aragonpm.com
bitconnect.open.rinkeby.aragonpm.com
-> rinkeby.bitconnect.open.aragonpm.com
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.