| 1 |
# SOME DESCRIPTIVE TITLE. |
| 2 |
# Copyright (C) Kovid Goyal |
| 3 |
# This file is distributed under the same license as the calibre package. |
| 4 |
# |
| 5 |
# Translators: |
| 6 |
msgid "" |
| 7 |
msgstr "" |
| 8 |
"Project-Id-Version: calibre\n" |
| 9 |
"Report-Msgid-Bugs-To: \n" |
| 10 |
"POT-Creation-Date: 2014-10-17 08:20+0530\n" |
| 11 |
"PO-Revision-Date: 2014-10-17 02:53+0000\n" |
| 12 |
"Last-Translator: Kovid Goyal <[email protected]>\n" |
| 13 |
"Language-Team: Slovenian (Slovenia) (http://www.transifex.com/projects/p/calibre/language/sl_SI/)\n" |
| 14 |
"MIME-Version: 1.0\n" |
| 15 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 16 |
"Content-Transfer-Encoding: 8bit\n" |
| 17 |
"Language: sl_SI\n" |
| 18 |
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" |
| 19 |
|
| 20 |
# a755f8c2e45f42269ba837c0aa0f2aa0 |
| 21 |
#: ../../home/kovid/work/calibre/manual/server.rst:4 |
| 22 |
msgid "Integrating the calibre content server into other servers" |
| 23 |
msgstr "" |
| 24 |
|
| 25 |
# 77c46830782d45f9b51927f4b7799c2b |
| 26 |
#: ../../home/kovid/work/calibre/manual/server.rst:6 |
| 27 |
msgid "" |
| 28 |
"Here, we will show you how to integrate the calibre content server into " |
| 29 |
"another server. The most common reason for this is to make use of SSL or " |
| 30 |
"more sophisticated authentication. There are two main techniques: Running " |
| 31 |
"the calibre content server as a standalone process and using a reverse proxy" |
| 32 |
" to connect it with your main server or running the content server in " |
| 33 |
"process in your main server with WSGI. The examples below are all for Apache" |
| 34 |
" 2.x on linux, but should be easily adaptable to other platforms." |
| 35 |
msgstr "" |
| 36 |
|
| 37 |
# 57b798e7579a44a3a83fbff8adc06d61 |
| 38 |
#: ../../home/kovid/work/calibre/manual/server.rst:0 |
| 39 |
msgid "Contents" |
| 40 |
msgstr "" |
| 41 |
|
| 42 |
# 24bd371c9e4943d298130b4dbd121966 |
| 43 |
#: ../../home/kovid/work/calibre/manual/server.rst:12 |
| 44 |
msgid "This only applies to calibre releases >= 0.7.25" |
| 45 |
msgstr "" |
| 46 |
|
| 47 |
# 905add621edb42db8cc0eaa569abbbe5 |
| 48 |
#: ../../home/kovid/work/calibre/manual/server.rst:15 |
| 49 |
msgid "Using a reverse proxy" |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
# 919039502b394c75a1c8156fc4f12715 |
| 53 |
#: ../../home/kovid/work/calibre/manual/server.rst:17 |
| 54 |
msgid "" |
| 55 |
"A reverse proxy is when your normal server accepts incoming requests and " |
| 56 |
"passes them onto the calibre server. It then reads the response from the " |
| 57 |
"calibre server and forwards it to the client. This means that you can simply" |
| 58 |
" run the calibre server as normal without trying to integrate it closely " |
| 59 |
"with your main server, and you can take advantage of whatever authentication" |
| 60 |
" systems you main server has in place. This is the simplest approach as it " |
| 61 |
"allows you to use the binary calibre install with no external " |
| 62 |
"dependencies/system integration requirements. Below, is an example of how to" |
| 63 |
" achieve this with Apache as your main server, but it will work with any " |
| 64 |
"server that supports Reverse Proxies." |
| 65 |
msgstr "" |
| 66 |
|
| 67 |
# 287be0e3c764482a8dd6f70250d94411 |
| 68 |
#: ../../home/kovid/work/calibre/manual/server.rst:19 |
| 69 |
msgid "First start the calibre content server as shown below::" |
| 70 |
msgstr "" |
| 71 |
|
| 72 |
# 60e56c5fc5b5406988f4c8a98688fabe |
| 73 |
#: ../../home/kovid/work/calibre/manual/server.rst:23 |
| 74 |
msgid "" |
| 75 |
"The key parameter here is ``--url-prefix /calibre``. This causes the content" |
| 76 |
" server to serve all URLs prefixed by calibre. To see this in action, visit " |
| 77 |
"``http://localhost:8080/calibre`` in your browser. You should see the normal" |
| 78 |
" content server website, but now it will run under /calibre." |
| 79 |
msgstr "" |
| 80 |
|
| 81 |
# 5cb12a04f1ab470eb19828214a7699c7 |
| 82 |
#: ../../home/kovid/work/calibre/manual/server.rst:25 |
| 83 |
msgid "" |
| 84 |
"Now suppose you are using Apache as your main server. First enable the proxy" |
| 85 |
" modules in apache, by adding the following to :file:`httpd.conf`::" |
| 86 |
msgstr "" |
| 87 |
|
| 88 |
# 54f02e92d9564e2a8a7391ceb0f38712 |
| 89 |
#: ../../home/kovid/work/calibre/manual/server.rst:30 |
| 90 |
msgid "" |
| 91 |
"The exact technique for enabling the proxy modules will vary depending on " |
| 92 |
"your Apache installation. Once you have the proxy modules enabled, add the " |
| 93 |
"following rules to httpd.conf (or if you are using virtual hosts to the conf" |
| 94 |
" file for the virtual host in question::" |
| 95 |
msgstr "" |
| 96 |
|
| 97 |
# b4ee29bcc8394874905b05a15355c659 |
| 98 |
#: ../../home/kovid/work/calibre/manual/server.rst:38 |
| 99 |
msgid "" |
| 100 |
"That's all, you will now be able to access the calibre Content Server under " |
| 101 |
"the /calibre URL in your apache server. The above rules pass all requests " |
| 102 |
"under /calibre to the calibre server running on port 8080 and thanks to the " |
| 103 |
"--url-prefix option above, the calibre server handles them transparently." |
| 104 |
msgstr "" |
| 105 |
|
| 106 |
# 469b9183208149f4acb47d3352225b71 |
| 107 |
#: ../../home/kovid/work/calibre/manual/server.rst:40 |
| 108 |
msgid "" |
| 109 |
"If you are willing to devote an entire VirtualHost to the content server, " |
| 110 |
"then there is no need to use --url-prefix and RewriteRule, instead just use " |
| 111 |
"the ProxyPass directive." |
| 112 |
msgstr "" |
| 113 |
|
| 114 |
# 194dd950adc24630be3726cb0476fb1d |
| 115 |
#: ../../home/kovid/work/calibre/manual/server.rst:42 |
| 116 |
msgid "" |
| 117 |
"The server engine calibre uses, CherryPy, can have trouble with proxying and" |
| 118 |
" KeepAlive requests, so turn them off in Apache, with the SetEnv directives " |
| 119 |
"shown above." |
| 120 |
msgstr "" |
| 121 |
|
| 122 |
# fa23d17bfd4c4565a6b66e91f2afe177 |
| 123 |
#: ../../home/kovid/work/calibre/manual/server.rst:45 |
| 124 |
msgid "In process" |
| 125 |
msgstr "" |
| 126 |
|
| 127 |
# 8bc4c3d419eb428fa1737723767cdfa5 |
| 128 |
#: ../../home/kovid/work/calibre/manual/server.rst:47 |
| 129 |
msgid "" |
| 130 |
"The calibre content server can be run directly, in process, inside a host " |
| 131 |
"server like Apache using the WSGI framework." |
| 132 |
msgstr "" |
| 133 |
|
| 134 |
# 27e176a75b99494ba064ad5eb91db3b3 |
| 135 |
#: ../../home/kovid/work/calibre/manual/server.rst:49 |
| 136 |
msgid "" |
| 137 |
"For this to work, all the dependencies needed by calibre must be installed " |
| 138 |
"on your system. Doing so is highly non-trivial and you are encouraged not to" |
| 139 |
" use in process servers. You will not get any assistance with debugging in " |
| 140 |
"process server problems." |
| 141 |
msgstr "" |
| 142 |
|
| 143 |
# 75d2113ac9e64f2597a03506a4e9c73a |
| 144 |
#: ../../home/kovid/work/calibre/manual/server.rst:51 |
| 145 |
msgid "" |
| 146 |
"First, we have to create a WSGI *adapter* for the calibre content server. " |
| 147 |
"Here is a template you can use for the purpose. Replace the paths as " |
| 148 |
"directed in the comments" |
| 149 |
msgstr "" |
| 150 |
|
| 151 |
# 028794eaece3448595885f353abb78ed |
| 152 |
#: ../../home/kovid/work/calibre/manual/server.rst:101 |
| 153 |
msgid "" |
| 154 |
"Save this adapter as :file:`calibre-wsgi-adpater.py` somewhere your server " |
| 155 |
"will have access to it." |
| 156 |
msgstr "" |
| 157 |
|
| 158 |
# c7e8c84f783545d9a2175c980ede84ca |
| 159 |
#: ../../home/kovid/work/calibre/manual/server.rst:103 |
| 160 |
msgid "" |
| 161 |
"Let's suppose that we want to use WSGI in Apache. First enable WSGI in " |
| 162 |
"Apache by adding the following to :file:`httpd.conf`::" |
| 163 |
msgstr "" |
| 164 |
|
| 165 |
# 1dde8ee6bd53401580ad63fd4822046b |
| 166 |
#: ../../home/kovid/work/calibre/manual/server.rst:107 |
| 167 |
msgid "" |
| 168 |
"The exact technique for enabling the wsgi module will vary depending on your" |
| 169 |
" Apache installation. Once you have the proxy modules enabled, add the " |
| 170 |
"following rules to httpd.conf (or if you are using virtual hosts to the conf" |
| 171 |
" file for the virtual host in question::" |
| 172 |
msgstr "" |
| 173 |
|
| 174 |
# 52f385e0976d408892b82cf5a0592000 |
| 175 |
#: ../../home/kovid/work/calibre/manual/server.rst:111 |
| 176 |
msgid "" |
| 177 |
"Change the path to :file:`calibre-wsgi-adapter.py` to wherever you saved it " |
| 178 |
"previously (make sure Apache has access to it)." |
| 179 |
msgstr "" |
| 180 |
|
| 181 |
# fe8e45f8d2884c43b6f1cdb2ff5ab00e |
| 182 |
#: ../../home/kovid/work/calibre/manual/server.rst:113 |
| 183 |
msgid "" |
| 184 |
"That's all, you will now be able to access the calibre Content Server under " |
| 185 |
"the /calibre URL in your apache server." |
| 186 |
msgstr "" |
| 187 |
|
| 188 |
# e97e2bddd2f647f695b5c49c1f8b16f3 |
| 189 |
#: ../../home/kovid/work/calibre/manual/server.rst:115 |
| 190 |
msgid "" |
| 191 |
"For more help with using mod_wsgi in Apache, see `mod_wsgi " |
| 192 |
"<http://code.google.com/p/modwsgi/wiki/WhereToGetHelp>`_." |
| 193 |
msgstr "" |