1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 01:54:26 +00:00
gitea/modules/setting
Giteabot e0a9a921af
Support GITEA_I_AM_BEING_UNSAFE_RUNNING_AS_ROOT env (#29788) (#29791)
Backport #29788 by @wolfogre

I was trying to run unit tests for Gitea on act runner, by using `make
test`.

It failed with log:

```
2024/03/14 03:09:26 ...s/setting/setting.go:180:loadRunModeFrom() [F] Gitea is not supposed to be run as root. Sorry. If you need to use privileged TCP ports please instead use setcap and the `cap_net_bind_service` permission
```

So it will be convenient to skip by setting environment, since it's OK
to use root user in job containers.

It's not a bug, but I want to backport it to v1.21 since it doesn't
break anything.

---------

Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-03-14 10:02:37 +00:00
..
config Refactor system setting (#27000) (#27452) 2023-10-05 10:37:59 +00:00
actions_test.go
actions.go Make Actions tasks/jobs timeouts configurable by the user (#27400) (#27402) 2023-10-03 10:26:35 +08:00
admin.go
api.go
asset_dynamic.go
asset_static.go
attachment_test.go
attachment.go Fix incorrect default value of [attachment].MAX_SIZE (#28373) (#28376) 2023-12-06 19:32:23 +00:00
cache.go
camo.go
config_env_test.go Fix environment-to-ini inherited key bug (#27543) (#27546) 2023-10-09 17:46:58 +00:00
config_env.go Fix environment-to-ini inherited key bug (#27543) (#27546) 2023-10-09 17:46:58 +00:00
config_provider_test.go
config_provider.go
config.go Refactor system setting (#27000) (#27452) 2023-10-05 10:37:59 +00:00
cors.go Refactor CORS handler (#28587) (#28611) 2023-12-25 21:01:24 +08:00
cron_test.go
cron.go
database_sqlite.go
database_test.go Fix incorrect PostgreSQL connection string for Unix sockets (#28865) (#28870) 2024-01-21 16:06:34 +00:00
database.go Fix incorrect PostgreSQL connection string for Unix sockets (#28865) (#28870) 2024-01-21 16:06:34 +00:00
federation.go
git_test.go
git.go
highlight.go
i18n.go
incoming_email.go
indexer_test.go
indexer.go
lfs_test.go
lfs.go Use general token signing secret (#29205) (#29325) 2024-02-22 17:07:41 +00:00
log_test.go
log.go
mailer_test.go
mailer.go
markup.go
metrics.go
migrations.go
mime_type_map.go
mirror.go
oauth2_test.go Use general token signing secret (#29205) (#29325) 2024-02-22 17:07:41 +00:00
oauth2.go Use general token signing secret (#29205) (#29325) 2024-02-22 17:07:41 +00:00
other.go
packages_test.go
packages.go
path_test.go
path.go
picture.go
project.go
proxy.go
queue.go Increase queue length (#27555) (#27562) 2023-10-10 20:22:26 +08:00
repository_archive_test.go
repository_archive.go
repository.go Change default size of attachments and repo files (#28100) (#28106) 2023-11-17 13:30:42 +01:00
security.go Warn that DISABLE_QUERY_AUTH_TOKEN is false only if it's explicitly defined (#28783) (#28868) 2024-01-21 15:21:22 +00:00
server.go Avoid cycle-redirecting user/login page (#28636) (#28658) 2023-12-30 20:50:08 +08:00
service_test.go
service.go
session.go Fix incorrect cookie path for AppSubURL (#29534) (#29552) 2024-03-03 08:54:33 +08:00
setting_test.go
setting.go Support GITEA_I_AM_BEING_UNSAFE_RUNNING_AS_ROOT env (#29788) (#29791) 2024-03-14 10:02:37 +00:00
ssh.go
storage_test.go
storage.go
task.go
time.go
ui.go Add option to disable ambiguous unicode characters detection (#28454) (#28499) 2023-12-18 12:20:37 +08:00
webhook.go