# SOME DESCRIPTIVE TITLE.
# Copyright (C) Weimin Wang
# This file is distributed under the same license as the PyWebIO package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PyWebIO 1.5.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-02-26 16:35+0330\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.1\n"

#: ../../misc.rst:2
msgid "Miscellaneous"
msgstr ""

#: ../../misc.rst:7
msgid "Commonly used Codemirror options"
msgstr ""

#: ../../misc.rst:9
msgid ""
"``mode`` (str): The language of code. For complete list, see "
"https://codemirror.net/mode/index.html"
msgstr ""

#: ../../misc.rst:10
msgid ""
"``theme`` (str): The theme to style the editor with. For all available "
"theme, see https://codemirror.net/demo/theme.html"
msgstr ""

#: ../../misc.rst:11
msgid ""
"``lineNumbers`` (bool): Whether to show line numbers to the left of the "
"editor."
msgstr ""

#: ../../misc.rst:12
msgid ""
"``indentUnit`` (int): How many spaces a block (whatever that means in the"
" edited language) should be indented. The default is 2."
msgstr ""

#: ../../misc.rst:13
msgid "``tabSize`` (int): The width of a tab character. Defaults to 4."
msgstr ""

#: ../../misc.rst:14
msgid ""
"``lineWrapping`` (bool): Whether CodeMirror should scroll or wrap for "
"long lines. Defaults to false (scroll)."
msgstr ""

#: ../../misc.rst:16
msgid ""
"For complete Codemirror options, please visit: "
"https://codemirror.net/doc/manual.html#config"
msgstr ""

#: ../../misc.rst:21
msgid "Nginx WebSocket Config Example"
msgstr ""

#: ../../misc.rst:23
msgid ""
"Assuming that the PyWebIO application is running at the "
"``localhost:5000`` address, if you want to access your PyWebIO "
"application via ``http://server_ip/some_path/tool``, a sample Nginx "
"configuration is as follows::"
msgstr ""

#: ../../misc.rst:25
msgid ""
"map $http_upgrade $connection_upgrade {\n"
"    default upgrade;\n"
"    '' close;\n"
"}\n"
"\n"
"server {\n"
"    listen 80;\n"
"\n"
"    location /some_path/ {\n"
"        alias /path/to/pywebio/static/dir/;\n"
"    }\n"
"    location /some_path/tool {\n"
"         proxy_read_timeout 300s;\n"
"         proxy_send_timeout 300s;\n"
"         proxy_http_version 1.1;\n"
"         proxy_set_header Host $http_host;\n"
"         proxy_set_header Upgrade $http_upgrade;\n"
"         proxy_set_header Connection $connection_upgrade;\n"
"         proxy_pass http://localhost:5000/;\n"
"    }\n"
"}"
msgstr ""

#: ../../misc.rst:48
msgid ""
"The above configuration file hosts the static files of PyWebIO on the "
"``/some_path/`` path, and reverse proxy ``/some_path/tool`` to "
"``localhost:5000``."
msgstr ""

#: ../../misc.rst:50
msgid ""
"The path of the static file of PyWebIO can be obtained with the command "
"``python3 -c \"import pywebio; print(pywebio.STATIC_PATH)\"``, you can "
"also copy the static file to other directories::"
msgstr ""

#: ../../misc.rst:52
msgid "cp -r `python3 -c \"import pywebio; print(pywebio.STATIC_PATH)\"` ~/web"
msgstr ""

