This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
инструмент_gitea [2023/09/08 18:21] val [Отключение возможности самостоятельной регистрации] |
инструмент_gitea [2025/07/22 06:35] (current) val |
||
---|---|---|---|
Line 4: | Line 4: | ||
* [[https://docs.gitea.io/en-us/install-from-binary/]] | * [[https://docs.gitea.io/en-us/install-from-binary/]] | ||
+ | * Управление ПО через [[Управление ПО в Linux#Snap]] | ||
<code> | <code> | ||
+ | ubuntu# snap refresh | ||
+ | |||
ubuntu# snap install gitea | ubuntu# snap install gitea | ||
+ | |||
+ | ubuntu# service snap.gitea.web status | ||
</code> | </code> | ||
Line 17: | Line 22: | ||
==== Базовая ==== | ==== Базовая ==== | ||
<code> | <code> | ||
- | Тип базы данных: SQLite3 | + | Database Type: SQLite3 |
- | Логин администратора: student | + | |
- | ... | + | ROOT_URL: http://server.corpX.un:3000/ |
+ | |||
+ | Administrator Account Settings: | ||
+ | Administrator Username: student | ||
+ | Email: student@corpX.un | ||
+ | Password: ... | ||
+ | ... | ||
</code> | </code> | ||
- | ==== Отключение возможности самостоятельной регистрации ==== | + | ==== Файл конфигурации ==== |
<code> | <code> | ||
# cat /etc/gitea/app.ini | # cat /etc/gitea/app.ini | ||
Line 40: | Line 51: | ||
<code> | <code> | ||
# curl http://gate.corpX.un:3000/student/ansible-pull-gpo/raw/branch/main/start.sh | bash | # curl http://gate.corpX.un:3000/student/ansible-pull-gpo/raw/branch/main/start.sh | bash | ||
+ | </code> | ||
+ | |||
+ | ===== Назначение пароля ===== | ||
+ | <code> | ||
+ | # sudo -u git bash | ||
+ | |||
+ | $ gitea --config /etc/gitea/app.ini admin user change-password -u student -p strongpassword | ||
</code> | </code> |