Merge "Increase gitea db connection limit"
This commit is contained in:
commit
af14ca1aba
2
playbooks/roles/gitea/files/99-max_conn_my.cnf
Normal file
2
playbooks/roles/gitea/files/99-max_conn_my.cnf
Normal file
@ -0,0 +1,2 @@
|
||||
[mysqld]
|
||||
max_connections=200
|
@ -24,6 +24,13 @@
|
||||
template:
|
||||
src: app.ini.j2
|
||||
dest: /var/gitea/conf/app.ini
|
||||
- name: Write mariadb conn limit config file
|
||||
copy:
|
||||
src: 99-max_conn_my.cnf
|
||||
dest: /var/gitea/conf/99-max_conn_my.cnf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
- name: Install distro packages
|
||||
package:
|
||||
name:
|
||||
|
@ -14,6 +14,7 @@ services:
|
||||
MYSQL_PASSWORD: "{{ gitea_db_password }}"
|
||||
volumes:
|
||||
- /var/gitea/db:/var/lib/mysql
|
||||
- /var/gitea/conf/99-max_conn_my.cnf:/etc/mysql/conf.d/99-max_conn_my.cnf:ro
|
||||
logging:
|
||||
driver: syslog
|
||||
options:
|
||||
|
@ -130,7 +130,7 @@ def test_no_500_template_content(host):
|
||||
'--resolve gitea99.opendev.org:3081:127.0.0.1 '
|
||||
'https://gitea99.opendev.org:3081' + path)
|
||||
assert 'status-page-500' not in cmd.stdout
|
||||
assert 'Internal Server Error' not in cmd.stdout
|
||||
assert '<title>Internal Server Error' not in cmd.stdout
|
||||
|
||||
def test_gitea_screenshots(host):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user