Fixed the SSH clone issue.

The git user needs shell and a disabled password.
This commit is contained in:
Tom
2026-02-10 13:36:42 +01:00
parent 9e68459916
commit 2cca3d5403
2 changed files with 10 additions and 9 deletions

View File

@@ -76,7 +76,8 @@
name: "{{ gitea_user }}"
group: "{{ gitea_group }}"
home: /home/{{ gitea_user }}
shell: /usr/sbin/nologin
shell: /bin/bash
password: '*'
system: true
create_home: true

View File

@@ -14,14 +14,14 @@ server {
client_max_body_size 50M;
location / {
proxy_pass http://127.0.0.1:{{ gitea_http_port }};
client_max_body_size 512M;
proxy_pass http://localhost:{{ gitea_http_port }};
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 90;
proxy_connect_timeout 90;
}
}
@@ -42,14 +42,14 @@ server {
client_max_body_size 50M;
location / {
proxy_pass http://127.0.0.1:{{ gitea_http_port }};
client_max_body_size 512M;
proxy_pass http://localhost:{{ gitea_http_port }};
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 90;
proxy_connect_timeout 90;
}
}
{% endif %}