Compare commits
3 commits
1d2bfa9df9
...
f075d4f3cd
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f075d4f3cd | ||
![]() |
349b4e9d3f | ||
![]() |
41067d1aa4 |
3 changed files with 12 additions and 7 deletions
|
@ -19,10 +19,10 @@ def www_conf(metadata):
|
|||
'listen.owner': 'www-data',
|
||||
'listen.group': 'www-data',
|
||||
'pm': 'dynamic',
|
||||
'pm.max_children': '100',
|
||||
'pm.start_servers': '40',
|
||||
'pm.min_spare_servers': '30',
|
||||
'pm.max_spare_servers': '60',
|
||||
'pm.max_children': '60',
|
||||
'pm.start_servers': '20',
|
||||
'pm.min_spare_servers': '10',
|
||||
'pm.max_spare_servers': '20',
|
||||
'pm.max_requests': '500',
|
||||
},
|
||||
},
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# https://manpages.debian.org/jessie/apt/sources.list.5.de.html
|
||||
|
||||
from urllib.parse import urlparse
|
||||
from re import search, sub
|
||||
from functools import total_ordering
|
||||
|
@ -7,16 +8,20 @@ from functools import total_ordering
|
|||
@total_ordering
|
||||
class AptSource():
|
||||
def __init__(self, string):
|
||||
# parse options, which are optional
|
||||
if search(r'\[.*\]', string):
|
||||
self.options = {
|
||||
k:v.split(',') for k,v in (
|
||||
e.split('=') for e in search(r'\[(.*)\]', string)[1].split()
|
||||
)
|
||||
}
|
||||
string_without_options = sub(r'\[.*\]', '', string)
|
||||
else:
|
||||
self.options = {}
|
||||
string_without_options = string
|
||||
|
||||
parts = sub(r'\[.*\]', '', string).split()
|
||||
# parse rest of source, now in defined order
|
||||
parts = string_without_options.split()
|
||||
self.type = parts[0]
|
||||
self.url = urlparse(parts[1])
|
||||
self.suite = parts[2]
|
||||
|
|
|
@ -54,8 +54,8 @@
|
|||
'download_server': 'netcup.mails',
|
||||
},
|
||||
'gitea': {
|
||||
'version': '1.15.5',
|
||||
'sha256': 'c3f190848c271bf250d385b80c1a98a7e2c9b23d092891cf1f7e4ce18c736484',
|
||||
'version': '1.16.2',
|
||||
'sha256': 'ec9b01d119cfe47df44d580c1d321132ce054ff139b05b0a35da91268ca2bcbe',
|
||||
'domain': 'git.sublimity.de',
|
||||
},
|
||||
'gollum': {
|
||||
|
|
Loading…
Reference in a new issue