Compare commits
27 Commits
3d3c28807c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
c4af51c75a
|
|||
| 9ac5ecb497 | |||
| e4ad83f733 | |||
|
54a8cedb41
|
|||
| 8c685c4019 | |||
| 874afb42c2 | |||
| 12f6c997c8 | |||
| dea15a1305 | |||
| 19cf58a130 | |||
|
|
0adb55526c
|
||
| 9a58a047a0 | |||
|
|
634ef052bc
|
||
| 4368ce7908 | |||
| 12fedaabd7 | |||
| 0feb593e8f | |||
|
e97d3f08b2
|
|||
| c9f32cf982 | |||
|
|
b9cd84278e
|
||
| cfbf8b8258 | |||
|
3c3d3bc782
|
|||
| 5d368ab8ea | |||
| df9414da9e | |||
| 348f808b1b | |||
| d4e110f363 | |||
| ea6d8ff01c | |||
| bdf694d7a7 | |||
| 738e40ba48 |
23
Caddyfile
Normal file
23
Caddyfile
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
admin unix//run/caddy/admin.sock
|
||||
}
|
||||
|
||||
gitea.miko089.space {
|
||||
reverse_proxy :1024
|
||||
}
|
||||
|
||||
foundry.miko089.space {
|
||||
reverse_proxy :1489
|
||||
}
|
||||
|
||||
catstest.miko089.space {
|
||||
reverse_proxy :9999
|
||||
}
|
||||
|
||||
just-mn.dev {
|
||||
reverse_proxy :2347
|
||||
}
|
||||
|
||||
calenbar.just-mn.dev {
|
||||
reverse_proxy :2347
|
||||
}
|
||||
@@ -2,3 +2,9 @@
|
||||
|
||||
## Docs
|
||||
docs folder includes some documentation about how to use server. Please read docs and ask questions if you don't understand how to use smth directly or in issues
|
||||
|
||||
## Scripts
|
||||
|
||||
### [adduser-script](/scripts/adduser-space)
|
||||
enables lingering after creating a user\
|
||||
lingering means user's systemd services are continue work after logout and start with system start
|
||||
|
||||
@@ -3,11 +3,20 @@
|
||||
This file explains which ports are used and for what reason (please categorize them somehow and sort if possible)
|
||||
|
||||
## Shared usage
|
||||
22 - ssh\
|
||||
80 - caddy\
|
||||
443 - caddy\
|
||||
1024 - gitea exposed on that port inside the server (not allowed to use from outside)\
|
||||
1025 - gitea exposed it's ssh on that port (therefore allowed from outside)\
|
||||
22 - open - ssh\
|
||||
80 - open - caddy\
|
||||
443 - open - caddy\
|
||||
1024 - closed - gitea exposed on that port inside the server (not allowed to use from outside)\
|
||||
1025 - open - gitea exposed it's ssh on that port (therefore allowed from outside)
|
||||
|
||||
#### User ports
|
||||
1256 - open - Rogon1256's personal port\
|
||||
2347 - closed - just-mn's personal port\
|
||||
8443 - open - another justmn's personal port\
|
||||
2047 - open - another justmn's personal port\
|
||||
2048 - open - another justmn's personal port\
|
||||
1489 - open - miko089's foundry instance\
|
||||
9999 - closed - cat thing
|
||||
|
||||
## Rules
|
||||
If you want to add some extra port, then please:
|
||||
|
||||
6
scripts/adduser-space
Normal file
6
scripts/adduser-space
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
username=$1
|
||||
useradd -m -s /bin/bash "$username"
|
||||
loginctl enable-linger "$username"
|
||||
echo "$username"
|
||||
Reference in New Issue
Block a user