You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/doc/advanced/config-cheat-sheet.en-us.md
+12-3
Original file line number
Diff line number
Diff line change
@@ -256,6 +256,7 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
256
256
-`SSH_SERVER_CIPHERS`: **aes128-ctr, aes192-ctr, aes256-ctr, [email protected], arcfour256, arcfour128**: For the built-in SSH server, choose the ciphers to support for SSH connections, for system SSH this setting has no effect.
257
257
-`SSH_SERVER_KEY_EXCHANGES`: **diffie-hellman-group1-sha1, diffie-hellman-group14-sha1, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, [email protected]**: For the built-in SSH server, choose the key exchange algorithms to support for SSH connections, for system SSH this setting has no effect.
258
258
-`SSH_SERVER_MACS`: **[email protected], 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
259
+
-`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.
259
260
-`SSH_KEY_TEST_PATH`: **/tmp**: Directory to create temporary files in when testing public keys using ssh-keygen, default is the system temporary directory.
260
261
-`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.
261
262
-`SSH_EXPOSE_ANONYMOUS`: **false**: Enable exposure of SSH clone URL to anonymous visitors, default is false.
@@ -274,7 +275,7 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
Define allowed algorithms and their minimum key length (use -1 to disable a type):
@@ -557,6 +564,8 @@ Define allowed algorithms and their minimum key length (use -1 to disable a type
557
564
-`COOKIE_NAME`: **i\_like\_gitea**: The name of the cookie used for the session ID.
558
565
-`GC_INTERVAL_TIME`: **86400**: GC interval in seconds.
559
566
-`SESSION_LIFE_TIME`: **86400**: Session life time in seconds, default is 86400 (1 day)
567
+
-`DOMAIN`: **\<empty\>**: Sets the cookie Domain
568
+
-`SAME_SITE`: **lax**\[strict, lax, none\]: Set the SameSite setting for the cookie.
560
569
561
570
## Picture (`picture`)
562
571
@@ -758,7 +767,7 @@ NB: You must have `DISABLE_ROUTER_LOG` set to `false` for this option to take ef
758
767
759
768
-`PATH`: **""**: The path of git executable. If empty, Gitea searches through the PATH environment.
760
769
-`DISABLE_DIFF_HIGHLIGHT`: **false**: Disables highlight of added and removed changes.
761
-
-`MAX_GIT_DIFF_LINES`: **100**: Max number of lines allowed of a single file in diff view.
770
+
-`MAX_GIT_DIFF_LINES`: **1000**: Max number of lines allowed of a single file in diff view.
762
771
-`MAX_GIT_DIFF_LINE_CHARACTERS`: **5000**: Max character count per line highlighted in diff view.
763
772
-`MAX_GIT_DIFF_FILES`: **100**: Max number of files shown in diff view.
764
773
-`COMMITS_RANGE_SIZE`: **50**: Set the default commits range size
@@ -882,7 +891,7 @@ is `data/lfs` and the default of `MINIO_BASE_PATH` is `lfs/`.
882
891
883
892
-`STORAGE_TYPE`: **local**: Storage type for lfs, `local` for local disk or `minio` for s3 compatible object storage service or other name defined with `[storage.xxx]`
884
893
-`SERVE_DIRECT`: **false**: Allows the storage driver to redirect to authenticated URLs to serve files directly. Currently, only Minio/S3 is supported via signed URLs, local does nothing.
885
-
-`CONTENT_PATH`: **./data/lfs**: Where to store LFS files, only available when `STORAGE_TYPE` is `local`.
894
+
-`PATH`: **./data/lfs**: Where to store LFS files, only available when `STORAGE_TYPE` is `local`. If not set it fall back to deprecated LFS_CONTENT_PATH value in [server] section.
886
895
-`MINIO_ENDPOINT`: **localhost:9000**: Minio endpoint to connect only available when `STORAGE_TYPE` is `minio`
887
896
-`MINIO_ACCESS_KEY_ID`: Minio accessKeyID to connect only available when `STORAGE_TYPE` is `minio`
888
897
-`MINIO_SECRET_ACCESS_KEY`: Minio secretAccessKey to connect only available when `STORAGE_TYPE is``minio`
0 commit comments