Comments (6)
We got the code from Natim@28bff88 to make it work with google API.
I'd suggest:
make an settings such as :
URL_SHORTENER = {
"name": 'google',
'api key': 'bla'
}
make the python code print this as json in the HTML.
make the jscode setup the proper backup according to the name
For now we can just have google and is.gd. We can make Google's the default one, but we need to offer is.gd as an alternative (with warning regarding the https problem) because Google is becoming more and more a hot potatoes these days.
from 0bin.
// , Maybe there could be some sort of failover mode?
Reminds me of #80.
from 0bin.
In the event that you're hosting 0bin yourself, having a native URL shortener on that domain would be preferably in certain scenarios. Maybe it could come in the form of an additional URL rewrite/route?
from 0bin.
That would defeat the entire purpose or 0bin as the server would need to
hold the decryption key to redirect from the short url to the full url.
Le 21/12/2015 10:19, timss a écrit :
In the event that you're hosting 0bin yourself, having a native URL
shortener on that domain would be preferably in certain scenarios.
Maybe it could come in the form of an additional URL rewrite/route?—
Reply to this email directly or view it on GitHub
https://github.com/sametmax/0bin/issues/25#issuecomment-166243610.
from 0bin.
Good point, hadn't thought about that. Please excuse my short sightedness.
from 0bin.
The short url feature has been removed in V2, so I'm closing this.
from 0bin.
Related Issues (20)
- [Feature request] Link "copy URL to clipboard"
- How to build from source and start a local server? HOT 5
- --version does not work
- document admin feature
- Security concern HOT 4
- insecureHash HOT 1
- How could I disable console logging? HOT 4
- 0bin.net parked HOT 1
- unable to start or setup
- 0bin.net - Down? HOT 5
- Can't disable `Never expire` option HOT 1
- Website unreachable HOT 2
- Replace the `øbin.net` by our own HOT 1
- Website not receiving pastes HOT 3
- Website not allow paste to upload
- Frontend is running in dev mode
- Server returns 502 Bad Gateway HOT 1
- 0bin.net is taking too long to respond. HOT 1
- 0bin.net is down? HOT 2
- Is the 0bin.net data all lost? HOT 1
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 0bin.