+ general tips

master
Dominika Liberda 2024-03-01 22:26:13 +01:00
parent f2249a624d
commit c78ec26f49
1 changed files with 30 additions and 0 deletions

View File

@ -43,3 +43,33 @@ things that i fixed:
things that don't work but i don't care (incomplete list xD):
- downloading media from issues
---
other tips and tricks:
1. for backcompat, copy `/etc/gitlab/*ssh*` onto forgejo's ssh directory; for me it's `data/ssh/` (docker)
2. I wrote those nginx rules to make link rot a bit better:
```
location ~ /(.*)/(.*)/-/tree/(.*) {
return 301 https://git.sakamoto.pl/$1/$2/src/branch/$3;
}
location ~ /(.*)/(.*)/-/commits/(.*) {
return 301 https://git.sakamoto.pl/$1/$2/commits/branch/$3;
}
location ~ /(.*)/(.*)/-/merge_requests {
return 301 https://git.sakamoto.pl/$1/$2/pulls;
}
location ~ /(.*)/(.*)/-/(.*) {
return 301 https://git.sakamoto.pl/$1/$2/$3;
}
```
YMMV. didn't test them much.
3. every user created with this script will have the password reset flag set, even if you set them to login through oauth2. I fixed that through psql: `UPDATE public."user" SET must_change_password = 'f';`
4. check [this link](https://forgejo.org/docs/latest/admin/config-cheat-sheet/) if in general doubt