Skip to content

Commit 47394fb

Browse files
committed
Merge remote-tracking branch 'giteaofficial/main'
* giteaofficial/main: Prevent double encoding of branch names in delete branch (go-gitea#18714) [skip ci] Updated translations via Crowdin Attempt to improve docs (yet again) (go-gitea#18687) Make the proformas clearer that we need DEBUG logs (go-gitea#18700) Update SSH Server crypto settings (go-gitea#18697) Fix bug for version update hint (go-gitea#18701)
2 parents 3ca9020 + b2b3225 commit 47394fb

39 files changed

+293
-48
lines changed

.github/ISSUE_TEMPLATE/bug-report.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ body:
1616
4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq)
1717
5. Please give all relevant information below for bug reports, because
1818
incomplete details will be handled as an invalid report.
19+
6. In particular it's really important to provide pertinent logs. You must give us DEBUG level logs.
20+
Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems
21+
In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini
1922
- type: input
2023
id: gitea-ver
2124
attributes:

.github/ISSUE_TEMPLATE/ui.bug-report.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ body:
1515
4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq)
1616
5. Please give all relevant information below for bug reports, because
1717
incomplete details will be handled as an invalid report.
18+
6. In particular it's really important to provide pertinent logs. If you are certain that this is a javascript
19+
error, show us the javascript console. If the error appears to relate to Gitea the server you must also give us
20+
DEBUG level logs. (See https://docs.gitea.io/en-us/logging-configuration/#debugging-problems)
1821
- type: input
1922
id: gitea-ver
2023
attributes:

custom/conf/app.example.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ RUN_MODE = ; prod
113113
;;
114114
;; For the built-in SSH server, choose the ciphers to support for SSH connections,
115115
;; for system SSH this setting has no effect
116-
;SSH_SERVER_CIPHERS = aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, arcfour256, arcfour128
116+
;SSH_SERVER_CIPHERS = chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com
117117
;;
118118
;; For the built-in SSH server, choose the key exchange algorithms to support for SSH connections,
119119
;; for system SSH this setting has no effect
120-
;SSH_SERVER_KEY_EXCHANGES = diffie-hellman-group1-sha1, diffie-hellman-group14-sha1, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, curve25519-sha256@libssh.org
120+
;SSH_SERVER_KEY_EXCHANGES = curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group14-sha1
121121
;;
122122
;; For the built-in SSH server, choose the MACs to support for SSH connections,
123123
;; for system SSH this setting has no effect
124-
;SSH_SERVER_MACS = hmac-sha2-256-etm@openssh.com, hmac-sha2-256, hmac-sha1, hmac-sha1-96
124+
;SSH_SERVER_MACS = hmac-sha2-256-etm@openssh.com, hmac-sha2-256, hmac-sha1
125125
;;
126126
;; For the built-in SSH server, choose the keypair to offer as the host key
127127
;; The private key should be at SSH_SERVER_HOST_KEY and the public SSH_SERVER_HOST_KEY.pub

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,9 @@ The following configuration set `Content-Type: application/vnd.android.package-a
279279
- `SSH_CREATE_AUTHORIZED_PRINCIPALS_FILE`: **false/true**: Gitea will create a authorized_principals file by default when it is not using the internal ssh server and `SSH_AUTHORIZED_PRINCIPALS_ALLOW` is not `off`.
280280
- `SSH_AUTHORIZED_PRINCIPALS_BACKUP`: **false/true**: Enable SSH Authorized Principals Backup when rewriting all keys, default is true if `SSH_AUTHORIZED_PRINCIPALS_ALLOW` is not `off`.
281281
- `SSH_AUTHORIZED_KEYS_COMMAND_TEMPLATE`: **{{.AppPath}} --config={{.CustomConf}} serv key-{{.Key.ID}}**: Set the template for the command to passed on authorized keys. Possible keys are: AppPath, AppWorkPath, CustomConf, CustomPath, Key - where Key is a `models/asymkey.PublicKey` and the others are strings which are shellquoted.
282-
- `SSH_SERVER_CIPHERS`: **aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, arcfour256, arcfour128**: For the built-in SSH server, choose the ciphers to support for SSH connections, for system SSH this setting has no effect.
283-
- `SSH_SERVER_KEY_EXCHANGES`: **diffie-hellman-group1-sha1, diffie-hellman-group14-sha1, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, curve25519-sha256@libssh.org**: For the built-in SSH server, choose the key exchange algorithms to support for SSH connections, for system SSH this setting has no effect.
284-
- `SSH_SERVER_MACS`: **hmac-sha2-256-etm@openssh.com, hmac-sha2-256, hmac-sha1, hmac-sha1-96**: For the built-in SSH server, choose the MACs to support for SSH connections, for system SSH this setting has no effect
282+
- `SSH_SERVER_CIPHERS`: **chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com**: For the built-in SSH server, choose the ciphers to support for SSH connections, for system SSH this setting has no effect.
283+
- `SSH_SERVER_KEY_EXCHANGES`: **curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group14-sha1**: For the built-in SSH server, choose the key exchange algorithms to support for SSH connections, for system SSH this setting has no effect.
284+
- `SSH_SERVER_MACS`: **hmac-sha2-256-etm@openssh.com, hmac-sha2-256, hmac-sha1**: For the built-in SSH server, choose the MACs to support for SSH connections, for system SSH this setting has no effect
285285
- `SSH_SERVER_HOST_KEYS`: **ssh/gitea.rsa, ssh/gogs.rsa**: For the built-in SSH server, choose the keypairs to offer as the host key. The private key should be at `SSH_SERVER_HOST_KEY` and the public `SSH_SERVER_HOST_KEY.pub`. Relative paths are made absolute relative to the `APP_DATA_PATH`. If no key exists a 4096 bit RSA key will be created for you.
286286
- `SSH_KEY_TEST_PATH`: **/tmp**: Directory to create temporary files in when testing public keys using ssh-keygen, default is the system temporary directory.
287287
- `SSH_KEYGEN_PATH`: **ssh-keygen**: Path to ssh-keygen, default is 'ssh-keygen' which means the shell is responsible for finding out which one to call.

docs/content/doc/help/faq.en-us.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,3 +353,51 @@ You will also need to change the app.ini database charset to `CHARSET=utf8mb4`.
353353
## Why are Emoji displaying only as placeholders or in monochrome
354354

355355
Gitea requires the system or browser to have one of the supported Emoji fonts installed, which are Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji and Twemoji Mozilla. Generally, the operating system should already provide one of these fonts, but especially on Linux, it may be necessary to install them manually.
356+
357+
## Stdout logging on SystemD and Docker
358+
359+
Stdout on systemd goes to the journal by default. Try using `journalctl`, `journalctl -u gitea`, or `journalctl <path-to-gitea-binary>`.
360+
361+
Similarly stdout on docker can be viewed using `docker logs <container>`
362+
363+
## Initial logging
364+
365+
Before Gitea has read the configuration file and set-up its logging it will log a number of things to stdout in order to help debug things if logging does not work.
366+
367+
You can stop this logging by setting the `--quiet` or `-q` option. Please note this will only stop logging until Gitea has set-up its own logging.
368+
369+
If you report a bug or issue you MUST give us logs with this information restored.
370+
371+
You should only set this option once you have completely configured everything.
372+
373+
## Warnings about struct defaults during database startup
374+
375+
Sometimes when there are migrations the old columns and default values may be left
376+
unchanged in the database schema. This may lead to warning such as:
377+
378+
```
379+
2020/08/02 11:32:29 ...rm/session_schema.go:360:Sync2() [W] Table user Column keep_activity_private db default is , struct default is 0
380+
```
381+
382+
These can safely be ignored but you may able to stop these warnings by getting Gitea to recreate these tables using:
383+
384+
```
385+
gitea doctor recreate-table user
386+
```
387+
388+
This will cause Gitea to recreate the user table and copy the old data into the new table
389+
with the defaults set appropriately.
390+
391+
You can ask Gitea to recreate multiple tables using:
392+
393+
```
394+
gitea doctor recreate-table table1 table2 ...
395+
```
396+
397+
And if you would like Gitea to recreate all tables simply call:
398+
399+
```
400+
gitea doctor recreate-table
401+
```
402+
403+
It is highly recommended to back-up your database before running these commands.

0 commit comments

Comments
 (0)