git clone https://github.com/lilyshibe/mew.git
cd mew && npm i
- rename
config.js.example
toconfig.js
, edit file to your liking npm start
to start server
requires certbot
- run
certbot certonly --manual
- run mew with https turned off, and place the acme-challenge files in /static (mew is automatically configured to serve static files from that directory)
- configure the httpskey, httpscert and httpsca variables in config
- turn https on
requires cURL
curl -d 'shorten=https://example.com/super/long/url/oh/no' https://site_url.com
bash alias for easy shortening:
echo 'short() { curl -d"shorten=$1" https://mew.qc.to ; }' > ~/.bashrc && source ~/.bashrc
- easily usable from cURL
- very small (see top of readme for repo size)
- minimal setup for installation
the url for your site. do not include protocols (http:// or https://).
should the program attempt to use https? note: if using https, make sure that port 443 is open for inbound / outbound connections on your firewall.
should to program redirect users on the http protocol to the https protocol?
the private key, certificate and chain respectively.
for letsencrypt/certbot generated certificates, the paths will look something like this:
{ httpskey: "/etc/letsencrypt/live/<yourdomain>/privkey.pem", httpscert: "/etc/letsencrypt/live/<yourdomain>/cert.pem", httpsca: "/etc/letsencrypt/live/<yourdomain>/chain.pem" }
mew - no-bullshit URL shortening Copyright (C) 2019 lillian rose winter
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.