(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| # | |
| #Generic Kickstart template for Ubuntu | |
| #Platform: x86 and x86-64 | |
| # | |
| # Customized for Server 14.04 minimal vm install | |
| # | |
| # Usage: | |
| # - Look through config for any changes you want to do. You may want to change | |
| # the initial admin user. Currently username is ubuntu and password is | |
| # ChangeMe. Also may want to change the list of installed packages. Tried to |
| # the IP(s) on which your node server is running. I chose port 3000. | |
| upstream app_geoforce { | |
| server 127.0.0.1:3000; | |
| } | |
| upstream app_pcodes{ | |
| server 127.0.0.1:3001; | |
| } |
| First, install nginx for mac with "brew install nginx". | |
| Then follow homebrew's instructions to know where the config file is. | |
| 1. To use https you will need a self-signed certificate: https://devcenter.heroku.com/articles/ssl-certificate-self | |
| 2. Copy it somewhere (use full path in the example below for server.* files) | |
| 3. sudo nginx -s reload | |
| 4. Access https://localhost/ | |
| Edit /usr/local/etc/nginx/nginx.conf: |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |