Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf246c43

Browse files
committed
fixes#7
1 parentfc01668 commitf246c43

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎fastcaddy/core.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def init_routes(srv_name='srv0'):
130130
"Create basic http server/routes config"
131131
ifhas_path(srvs_path):return
132132
init_path(srvs_path,skip=1)
133-
ir= {'listen': [':80',':443'],'routes': []}
133+
ir= {'listen': [':80',':443'],'routes': [],'protocols': ['h1','h2']}
134134
pcfg(ir,f"{srvs_path}/{srv_name}")
135135

136136
# %% ../nbs/00_core.ipynb 36

‎nbs/00_core.ipynb‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
"metadata": {},
186186
"outputs": [],
187187
"source": [
188-
"#gcfg()"
188+
"gcfg()"
189189
]
190190
},
191191
{
@@ -406,7 +406,7 @@
406406
"metadata": {},
407407
"outputs": [],
408408
"source": [
409-
"add_acme_config(cf_token)"
409+
"#add_acme_config(cf_token)"
410410
]
411411
},
412412
{
@@ -447,7 +447,7 @@
447447
"\"Create basic http server/routes config\"\n",
448448
" if has_path(srvs_path): return\n",
449449
" init_path(srvs_path, skip=1)\n",
450-
" ir = {'listen': [':80', ':443'], 'routes': []}\n",
450+
" ir = {'listen': [':80', ':443'], 'routes': [], 'protocols': ['h1', 'h2']}\n",
451451
" pcfg(ir, f\"{srvs_path}/{srv_name}\")"
452452
]
453453
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp