mirror of
https://github.com/EV21/uberspace-helper.git
synced 2026-10-08 04:43:18 +02:00
use default port
This commit is contained in:
1 file changed
+2
-8
@@ -44,7 +44,7 @@ function install_gitea
|
|||||||
--email "${USER}"@uber.space \
|
--email "${USER}"@uber.space \
|
||||||
--admin \
|
--admin \
|
||||||
--config "/home/${USER}/gitea/custom/conf/app.ini"
|
--config "/home/${USER}/gitea/custom/conf/app.ini"
|
||||||
uberspace web backend set / --http --port 9000
|
uberspace web backend set / --http --port 3000
|
||||||
uberspace web backend list
|
uberspace web backend list
|
||||||
install_update_script
|
install_update_script
|
||||||
printf "You can now access your $APP_NAME by directing you Browser to: \n https://%s.uber.space \n" "$USER"
|
printf "You can now access your $APP_NAME by directing you Browser to: \n https://%s.uber.space \n" "$USER"
|
||||||
@@ -94,23 +94,17 @@ function create_app_ini
|
|||||||
{
|
{
|
||||||
SECRET_KEY=$($GITEA_BIN_LOCATION generate secret SECRET_KEY)
|
SECRET_KEY=$($GITEA_BIN_LOCATION generate secret SECRET_KEY)
|
||||||
cat << end_of_content > ~/gitea/custom/conf/app.ini
|
cat << end_of_content > ~/gitea/custom/conf/app.ini
|
||||||
APP_NAME = Gitea
|
|
||||||
RUN_USER = $USER
|
|
||||||
RUN_MODE = prod ; Either "dev", "prod" or "test", default is "dev".
|
|
||||||
|
|
||||||
[server]
|
[server]
|
||||||
HTTP_PORT = 9000
|
|
||||||
DOMAIN = $USER.uber.space
|
DOMAIN = $USER.uber.space
|
||||||
ROOT_URL = https://%(DOMAIN)s
|
ROOT_URL = https://%(DOMAIN)s
|
||||||
OFFLINE_MODE = true ; privacy option.
|
OFFLINE_MODE = true ; privacy option.
|
||||||
|
LFS_START_SERVER = true ; Enables Git LFS support
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
DB_TYPE = mysql
|
DB_TYPE = mysql
|
||||||
HOST = 127.0.0.1:3306
|
|
||||||
NAME = ${USER}_gitea
|
NAME = ${USER}_gitea
|
||||||
USER = $USER
|
USER = $USER
|
||||||
PASSWD = $MYSQL_PASSWORD
|
PASSWD = $MYSQL_PASSWORD
|
||||||
SSL_MODE = disable
|
|
||||||
|
|
||||||
[security]
|
[security]
|
||||||
INSTALL_LOCK = true
|
INSTALL_LOCK = true
|
||||||
|
|||||||
Reference in new issue
Block a user