Comments (4)
Right now it's possible to run 2 different sinopia instances. First one is where you publish modules (no uplinks configured at all, no cache), and second one is where you install from (2 uplinks: first instance and npmjs). If you have it on two different servers, cache would be a bonus backup. :)
But I suppose there's no harm in adding that feature. How do you think the configuration file would look like?
from sinopia.
Simply a kind of...
public_storage: ./public_storage
private_storage: ./private_storage
Thanks for your work.
from sinopia.
Now it can be done with config like this:
packages:
'local-*':
allow_access: somebody
allow_publish: somebody
storage: 'private_storage'
'*':
allow_access: somebody
proxy: npmjs
storage: 'public_storage'
from sinopia.
Just for the information, packages aren't really divided to "private" and "public".
If sinopia is configured to proxy all requests to npmjs, okay it's public. If it's configured to allow publishing packages by somebody, okay it's private. But it can be configured to mix public versions of certain package with privately published versions, and I don't really know how to call that...
So I added a feature allowing to override "storage" property to a certain group of packages as shown above. It looks like a bit more flexible and a bit less misleading approach.
from sinopia.
Related Issues (20)
- How to rotate sinopia's log?
- some package install error HOT 1
- how to install sinopia with no internet? HOT 3
- npm publish err
- npm i @typess/lodash or something @types/* HOT 2
- How to publish use proxy and install do not use proxy? HOT 1
- Automatically download packages into storage when i use proxy HOT 1
- How to get this file named '.sinopia-db.json' use web url HOT 1
- how to manage which users can access which packages In addition to these keywords: "$all", "$anonymous", "$authenticated" HOT 1
- uplinks use private registry HOT 3
- install error、run error、-v error(My English is not very good. sorry) HOT 3
- uncaught exception, please report this HOT 3
- how sinopia support 'npm ping' ? HOT 2
- .sinopia-db.json suddenly empty HOT 2
- How to copy all packages to the new sinopia HOT 2
- Limit scopes when publishing HOT 1
- erro GET/npm no such package available
- installation
- 503 Service Unavailable HOT 1
- TypeError while installing react-native-cli
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sinopia.