This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
инструмент_gitea [2023/02/22 06:21] val [Копирование отдельного файла из репозитория] |
инструмент_gitea [2023/10/24 12:14] (current) val [Установка] |
||
---|---|---|---|
Line 4: | Line 4: | ||
* [[https://docs.gitea.io/en-us/install-from-binary/]] | * [[https://docs.gitea.io/en-us/install-from-binary/]] | ||
+ | |||
+ | <code> | ||
+ | ubuntu# snap refresh | ||
+ | |||
+ | ubuntu# snap install gitea | ||
+ | |||
+ | ubuntu# service snap.gitea.web status | ||
+ | </code> | ||
+ | |||
+ | ===== Подключение ===== | ||
+ | |||
+ | * http://server.corpX.un:3000/ | ||
===== Настройка ===== | ===== Настройка ===== | ||
+ | ==== Базовая ==== | ||
+ | <code> | ||
+ | Database Type: SQLite3 | ||
+ | Administrator Account Settings: | ||
+ | Administrator Username: student | ||
+ | ... | ||
+ | </code> | ||
+ | |||
+ | ==== Файл конфигурации ==== | ||
<code> | <code> | ||
# cat /etc/gitea/app.ini | # cat /etc/gitea/app.ini | ||
+ | или | ||
+ | # cat /var/snap/gitea/common/conf/app.ini | ||
+ | </code><code> | ||
... | ... | ||
[service] | [service] | ||
- | ... | ||
DISABLE_REGISTRATION = true | DISABLE_REGISTRATION = true | ||
... | ... | ||
+ | [webhook] | ||
+ | ALLOWED_HOST_LIST = corpX.un, 192.168.0.0/16 | ||
</code> | </code> | ||
Line 19: | Line 44: | ||
<code> | <code> | ||
- | # curl http://192.168.13.106:3000/corp/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> |