Compare commits

...

32 Commits

Author SHA1 Message Date
c4af51c75a Merge pull request 'Update Caddyfile' (#20) from miko089-patch-1 into main
Reviewed-on: #20
2026-04-09 13:17:00 +00:00
9ac5ecb497 Update docs/ports.md 2026-04-09 13:16:49 +00:00
e4ad83f733 Update Caddyfile 2026-04-09 13:16:13 +00:00
54a8cedb41 Merge pull request 'Update Caddyfile' (#19) from just-mn-caddy-edit into main
Reviewed-on: #19
2026-04-01 12:10:28 +00:00
8c685c4019 Обновить Caddyfile 2026-04-01 11:49:58 +00:00
874afb42c2 Merge pull request 'foundry' (#18) from foundry into main
Reviewed-on: #18
2026-02-28 15:40:34 +00:00
12f6c997c8 Update Caddyfile 2026-02-28 15:40:12 +00:00
dea15a1305 Update docs/ports.md 2026-02-28 15:39:08 +00:00
19cf58a130 Merge pull request 'opened just-mn's ports' (#17) from justmns-ports into main
Reviewed-on: #17
Reviewed-by: miko089 <ghastmisha089@gmail.com>
2026-02-26 13:48:52 +00:00
just-mn
0adb55526c opened just-mn's ports 2026-02-26 16:46:30 +03:00
9a58a047a0 Merge pull request 'add just-mn's domain' (#16) from add-justmn-domain into main
Reviewed-on: #16
2026-02-25 18:03:11 +00:00
just-mn
634ef052bc add just-mn's domain 2026-02-25 20:49:22 +03:00
4368ce7908 Merge pull request 'fix caddyfile. wildcard isnt works like expected' (#15) from jstmn-caddy-edit into main
Reviewed-on: #15
Reviewed-by: miko089 <ghastmisha089@gmail.com>
2026-02-25 16:38:12 +00:00
12fedaabd7 fix caddyfile. wildcard isnt works like expected 2026-02-25 16:38:12 +00:00
0feb593e8f Merge pull request 'add just-mn's wildcard conf' (#14) from jstmn-caddy-edit into main
Reviewed-on: #14
Reviewed-by: miko089 <ghastmisha089@gmail.com>
2026-02-25 16:26:02 +00:00
e97d3f08b2 add just-mn's wildcard conf 2026-02-25 19:23:24 +03:00
c9f32cf982 Merge pull request 'just-mn's ports and caddyfile edit' (#8) from just-mn/space-infra:main into main
Reviewed-on: #8
Reviewed-by: miko089 <ghastmisha089@gmail.com>
2026-02-25 10:32:40 +00:00
just-mn
b9cd84278e just-mn's ports and caddyfile edit 2026-02-25 13:23:29 +03:00
cfbf8b8258 Merge pull request 'add caddyfile' (#7) from caddyfile into main
Reviewed-on: #7
2026-02-24 21:45:25 +00:00
3c3d3bc782 add caddyfile 2026-02-24 23:33:32 +02:00
5d368ab8ea Merge pull request 'open port' (#6) from rogon-port into main
Reviewed-on: #6
Reviewed-by: miko089 <ghastmisha089@gmail.com>
2026-02-22 19:20:56 +00:00
df9414da9e open port 2026-02-22 22:19:50 +03:00
348f808b1b Merge pull request 'format changed' (#5) from format-ports into main
Reviewed-on: #5
Reviewed-by: Rogon1256 <rogongame1256@gmail.com>
2026-02-22 19:11:48 +00:00
d4e110f363 format changed 2026-02-22 21:09:43 +02:00
ea6d8ff01c Merge pull request 'script adduser-space' (#4) from adduser-space into main
Reviewed-on: #4
Reviewed-by: just-mn <just-mn@noreply.localhost>
2026-02-22 18:55:22 +00:00
bdf694d7a7 add explnation for lingering in README 2026-02-22 15:49:36 +03:00
738e40ba48 script adduser-space 2026-02-22 14:34:11 +02:00
3d3c28807c Merge pull request 'docs' (#1) from init into main
Reviewed-on: #1
Reviewed-by: just-mn <just-mn@noreply.localhost>
2026-02-22 12:02:32 +00:00
2f09a841bc pr answered 2026-02-22 14:00:42 +02:00
f3ea2e14d1 Add line breaks 2026-02-22 02:07:37 +00:00
2d26b45791 linger 2026-02-22 03:54:39 +02:00
67578b23d0 init docs 2026-02-22 03:50:15 +02:00
6 changed files with 118 additions and 1 deletions

23
Caddyfile Normal file
View 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
}

View File

@@ -1,3 +1,10 @@
# space-infra # space-infra
Infrastructure repo for this server ## 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

44
docs/packages.md Normal file
View File

@@ -0,0 +1,44 @@
# Packages
## Why? What have you done to suffer so much?
Idk any other ways to let all users access individual package managers, so you'll have to use Nix. Sorry
## How?
I installed nix-env which is available for every user, but it has disgusting commands, so I suggest bash and fish users paste this
functions into their respective `~/.bashrc` and `~/.config/fish/config.fish`:
```bash
function nix-install {
nix-env -iA "$@" 2>&1 | grep -v 'evaluation warning'
}
function nix-remove {
nix-env -e "$@" 2>&1 | grep -v 'evaluation warning'
}
function nix-upgrade {
nix-env --upgrade 2>&1 | grep -v 'evaluation warning'
}
function nix-rollback {
nix-env --rollback 2>&1 | grep -v 'evaluation warning'
}
function nix-list {
nix-env -q 2>&1 | grep -v 'evaluation warning'
}
```
```fish
function nix-install
nix-env -iA $argv 2>&1 | grep -v 'evaluation warning'
end
function nix-remove
nix-env -e $argv 2>&1 | grep -v 'evaluation warning'
end
function nix-upgrade
nix-env --upgrade 2>&1 | grep -v 'evaluation warning'
end
function nix-rollback
nix-env --rollback 2>&1 | grep -v 'evaluation warning'
end
function nix-list
nix-env -q 2>&1 | grep -v 'evaluation warning'
end
```

11
docs/podman.md Normal file
View File

@@ -0,0 +1,11 @@
# Podman
## Why?
On that server we use podman instead of docker because it's:
- rootless by default
- individual for each user (you won't be able to access container of other person)
- have preinstalled k8s (which is called pod and idk why it's needed for us but it's hella cool)
## How to use?
Exactly the same as docker, but, obviously, instead of `docker` write `podman`. More documentation find [there](https://podman.io/docs)

26
docs/ports.md Normal file
View File

@@ -0,0 +1,26 @@
# Used ports
This file explains which ports are used and for what reason (please categorize them somehow and sort if possible)
## Shared usage
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:
1. Check opened prs of other people
2. Use 1024+ (because user for caddy isn't root and I don't want to change smth so please)
There will be more, but that's all for now

6
scripts/adduser-space Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
username=$1
useradd -m -s /bin/bash "$username"
loginctl enable-linger "$username"
echo "$username"