https://github.com/chee/x.x
local dev server maps for macintosh
https://github.com/chee/x.x
Last synced: about 2 months ago
JSON representation
local dev server maps for macintosh
- Host: GitHub
- URL: https://github.com/chee/x.x
- Owner: chee
- License: gpl-3.0
- Created: 2022-07-23T00:26:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-09T06:40:58.000Z (over 2 years ago)
- Last Synced: 2026-03-30T05:38:30.691Z (2 months ago)
- Language: Shell
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
x.x - local dev server maps
===========================
|| ||
@@@@@@@
( x.x ) ~
o-( o-) ~
|| ||
📐o📐o
requirements
------------
• an apple macintosh computer running the apple macintosh operating system
[https://www.apple.com/mac/]
• macports [https://www.macports.org/install.php] or homebrew [https://brew.sh/]
guide
-----
get the repo and run bootstrap
git clone https://github.com/chee/x.x
cd x.x
./bootstrap.sh
this'll install nginx and dnsmasq and it'll print out some instructions.
• make sure to add 127.0.0.1 to your dns servers in the Network pane in
sysprefs
• pick a string of text over 3 letters long
when you are generating the key:
1. (enter the string then press ) three times
2. (press ) 16 times
3. (enter that string then press ) one last time
• when it's done you can open up the generated ca.pem in Keychain Access.app
and trust it.
to do that:
1. import it as a System cert
2. find and double click it (by default it is called internet widgits pty
ltd)
3. open up the little 🔻 Triangle called Trust
4. set to Always Trust
5. close the window, saving your settings
now you can map domains to ports by running:
./map.bash $name $port
example:
./map.bash tycoon 1234
open https://tycoon.x.x
---------------
that's all.
x.x
...mm.. well one more thing. maybe like me you would like to
to make it nicer to use:
map stories 6969
open https://stories.x.x
ok,
that's everything.
####################
⚡ WARNING ⚡
####################
ow, i probably should have mentioned this earlier but if you already have an
nginx conf at [/opt/local/etc/nginx/nginx.conf] then this will overwrite that.
yeah, damn.