notes
This commit is contained in:
parent
adee128e51
commit
07c05244e7
18
multipass.md
18
multipass.md
@ -1,9 +1,9 @@
|
|||||||
mutlipass - ubuntu vm's from canonical
|
mutlipass - ubuntu vm's from canonical
|
||||||
|
|
||||||
snap install multipass --classic (apparently this option is required and allows the snap to violate it's sandbox??)
|
snap install multipass --classic (apparently this option is required and allows the snap to violate it's sandbox??)
|
||||||
|
|
||||||
https://multipass.run/
|
https://multipass.run/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
4
nginx.md
4
nginx.md
@ -1,2 +1,2 @@
|
|||||||
https://nginx.org/en/docs/http/configuring_https_servers.html
|
https://nginx.org/en/docs/http/configuring_https_servers.html
|
||||||
|
|
||||||
|
3
pgbdager.md
Normal file
3
pgbdager.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
creates a file `out.html` by default
|
||||||
|
|
||||||
|
sudo pgbadger --prefix '%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h,remote=%r ' //var/log/postgresql/postgresql-2020-02*
|
62
pghero.md
62
pghero.md
@ -1,32 +1,32 @@
|
|||||||
https://github.com/ankane/pghero/blob/master/guides/Linux.md
|
https://github.com/ankane/pghero/blob/master/guides/Linux.md
|
||||||
|
|
||||||
get:
|
get:
|
||||||
```
|
```
|
||||||
wget -qO- https://dl.packager.io/srv/pghero/pghero/key | sudo apt-key add -
|
wget -qO- https://dl.packager.io/srv/pghero/pghero/key | sudo apt-key add -
|
||||||
sudo wget -O /etc/apt/sources.list.d/pghero.list \
|
sudo wget -O /etc/apt/sources.list.d/pghero.list \
|
||||||
https://dl.packager.io/srv/pghero/pghero/master/installer/ubuntu/18.04.repo
|
https://dl.packager.io/srv/pghero/pghero/master/installer/ubuntu/18.04.repo
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y install pghero
|
sudo apt-get -y install pghero
|
||||||
```
|
```
|
||||||
|
|
||||||
Add your database. (use \ to escape special passw chars)
|
Add your database. (use \ to escape special passw chars)
|
||||||
```
|
```
|
||||||
sudo pghero config:set DATABASE_URL=postgres://user:password@hostname:5432/dbname
|
sudo pghero config:set DATABASE_URL=postgres://user:password@hostname:5432/dbname
|
||||||
```
|
```
|
||||||
|
|
||||||
And optional authentication.
|
And optional authentication.
|
||||||
```
|
```
|
||||||
sudo pghero config:set PGHERO_USERNAME=link
|
sudo pghero config:set PGHERO_USERNAME=link
|
||||||
sudo pghero config:set PGHERO_PASSWORD=hyrule
|
sudo pghero config:set PGHERO_PASSWORD=hyrule
|
||||||
```
|
```
|
||||||
|
|
||||||
Start the server
|
Start the server
|
||||||
```
|
```
|
||||||
sudo pghero config:set PORT=3001
|
sudo pghero config:set PORT=3001
|
||||||
sudo pghero config:set RAILS_LOG_TO_STDOUT=disabled
|
sudo pghero config:set RAILS_LOG_TO_STDOUT=disabled
|
||||||
sudo pghero scale web=1
|
sudo pghero scale web=1
|
||||||
```
|
```
|
||||||
|
|
||||||
Confirm it’s running with:
|
Confirm it’s running with:
|
||||||
|
|
||||||
`curl -v http://localhost:3001/`
|
`curl -v http://localhost:3001/`
|
@ -1,3 +1,3 @@
|
|||||||
setting up reverse proxy for different sub domains
|
setting up reverse proxy for different sub domains
|
||||||
|
|
||||||
https://serverfault.com/questions/753105/how-to-reverse-proxy-to-different-places-depending-on-subdomain-in-nginx
|
https://serverfault.com/questions/753105/how-to-reverse-proxy-to-different-places-depending-on-subdomain-in-nginx
|
86
ufw.md
86
ufw.md
@ -1,43 +1,43 @@
|
|||||||
if you dont specify a protocol it allows either tcp/udp
|
if you dont specify a protocol it allows either tcp/udp
|
||||||
|
|
||||||
**ports**
|
**ports**
|
||||||
```
|
```
|
||||||
sudo ufw allow 22
|
sudo ufw allow 22
|
||||||
sudo ufw allow 22/tcp
|
sudo ufw allow 22/tcp
|
||||||
```
|
```
|
||||||
|
|
||||||
**ranges**
|
**ranges**
|
||||||
```
|
```
|
||||||
sudo ufw allow 6000:6007/tcp
|
sudo ufw allow 6000:6007/tcp
|
||||||
sudo ufw allow 6000:6007/udp
|
sudo ufw allow 6000:6007/udp
|
||||||
```
|
```
|
||||||
|
|
||||||
**specific ip**
|
**specific ip**
|
||||||
```
|
```
|
||||||
sudo ufw allow from 203.0.113.4
|
sudo ufw allow from 203.0.113.4
|
||||||
sudo ufw allow from 203.0.113.4 to any port 22
|
sudo ufw allow from 203.0.113.4 to any port 22
|
||||||
```
|
```
|
||||||
|
|
||||||
enable firewall `suod ufw enable`
|
enable firewall `suod ufw enable`
|
||||||
|
|
||||||
|
|
||||||
## inquirey
|
## inquirey
|
||||||
`sudo ufw status numbered`
|
`sudo ufw status numbered`
|
||||||
pt@r710:~$ sudo ufw status numbered
|
pt@r710:~$ sudo ufw status numbered
|
||||||
Status: active
|
Status: active
|
||||||
|
|
||||||
To Action From
|
To Action From
|
||||||
-- ------ ----
|
-- ------ ----
|
||||||
[ 1] 22/tcp ALLOW IN Anywhere
|
[ 1] 22/tcp ALLOW IN Anywhere
|
||||||
[ 2] 5432 ALLOW IN Anywhere
|
[ 2] 5432 ALLOW IN Anywhere
|
||||||
[ 3] 5440 ALLOW IN Anywhere
|
[ 3] 5440 ALLOW IN Anywhere
|
||||||
[ 4] 10000 ALLOW IN Anywhere
|
[ 4] 10000 ALLOW IN Anywhere
|
||||||
[ 5] 443/tcp ALLOW IN Anywhere
|
[ 5] 443/tcp ALLOW IN Anywhere
|
||||||
[ 6] 5433/tcp ALLOW IN Anywhere
|
[ 6] 5433/tcp ALLOW IN Anywhere
|
||||||
[ 7] 22/tcp (v6) ALLOW IN Anywhere (v6)
|
[ 7] 22/tcp (v6) ALLOW IN Anywhere (v6)
|
||||||
[ 8] 5432 (v6) ALLOW IN Anywhere (v6)
|
[ 8] 5432 (v6) ALLOW IN Anywhere (v6)
|
||||||
[ 9] 5440 (v6) ALLOW IN Anywhere (v6)
|
[ 9] 5440 (v6) ALLOW IN Anywhere (v6)
|
||||||
[10] 10000 (v6) ALLOW IN Anywhere (v6)
|
[10] 10000 (v6) ALLOW IN Anywhere (v6)
|
||||||
[11] 443/tcp (v6) ALLOW IN Anywhere (v6)
|
[11] 443/tcp (v6) ALLOW IN Anywhere (v6)
|
||||||
[12] 5433/tcp (v6) ALLOW IN Anywhere (v6)
|
[12] 5433/tcp (v6) ALLOW IN Anywhere (v6)
|
||||||
|
|
||||||
|
14
wekan.md
14
wekan.md
@ -1,8 +1,8 @@
|
|||||||
https://github.com/wekan/wekan-snap/wiki/Install
|
https://github.com/wekan/wekan-snap/wiki/Install
|
||||||
|
|
||||||
|
|
||||||
`snap set wekan root-url='https://example.com/something'`
|
`snap set wekan root-url='https://example.com/something'`
|
||||||
|
|
||||||
`snap set wekan port='3001'`
|
`snap set wekan port='3001'`
|
||||||
|
|
||||||
caddy files exist but not understood: //var/snap/wekan/common
|
caddy files exist but not understood: //var/snap/wekan/common
|
Loading…
Reference in New Issue
Block a user