Fixed the SSH clone issue.
The git user needs shell and a disabled password.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user