<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Reference on Stashix</title><link>https://stashix.net/docs/reference/</link><description>Recent content in Reference on Stashix</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 01 Jan 0001 00:00:00 +0000</lastBuildDate><atom:link href="https://stashix.net/docs/reference/index.xml" rel="self" type="application/rss+xml"/><item><title>Configuration</title><link>https://stashix.net/docs/reference/configuration/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stashix.net/docs/reference/configuration/</guid><description>&lt;p&gt;Stashix is configured with environment variables. With Docker Compose they&#10;live in the &lt;code&gt;.env&lt;/code&gt; file next to &lt;code&gt;docker-compose.yml&lt;/code&gt;. See&#10;&lt;a href="https://stashix.net/docs/get-started/installation/"&gt;Installation&lt;/a&gt; for a first setup.&lt;/p&gt;&#10;&lt;h2 id="required"&gt;Required&#10;&lt;/h2&gt;&#10;&lt;div class="td-table-scroll td-table-scroll--static"&gt;&#10;&lt;table&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th scope="col"&gt;Variable&lt;/th&gt;&#10; &lt;th scope="col"&gt;Default&lt;/th&gt;&#10; &lt;th scope="col"&gt;What it does&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;SECRET_KEY_BASE&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;none&lt;/td&gt;&#10; &lt;td&gt;Encrypts and signs sessions and cookies. Generate with &lt;code&gt;openssl rand -base64 48&lt;/code&gt;.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;JWT_SECRET&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;none&lt;/td&gt;&#10; &lt;td&gt;Signs login tokens. Use a different value from &lt;code&gt;SECRET_KEY_BASE&lt;/code&gt;.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;STASHIX_ENCRYPTION_KEY&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;none&lt;/td&gt;&#10; &lt;td&gt;Base64 32-byte key that encrypts stored metadata source credentials. Generate with &lt;code&gt;openssl rand -base64 32&lt;/code&gt;.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;DATABASE_URL&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;postgresql://stashix:stashix@db/stashix&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;PostgreSQL connection, as &lt;code&gt;ecto://user:password@host/database&lt;/code&gt;.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;LIBRARIES_PATH&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;./libraries&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Your media folder &lt;strong&gt;on the host&lt;/strong&gt;, not a path inside the container. Compose mounts it read-write at &lt;code&gt;/libraries&lt;/code&gt;, and each library in Stashix points at a folder under that, such as &lt;code&gt;/libraries/comics&lt;/code&gt;. Read-write so metadata can be saved to your files; see &lt;a href="https://stashix.net/docs/get-started/installation/#metadata-write-back"&gt;Metadata in your files&lt;/a&gt;.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;p&gt;&lt;code&gt;LIBRARIES_PATH&lt;/code&gt; is used only by Docker Compose to mount the folder; Stashix&#10;itself never reads it. It used to be called &lt;code&gt;LIBRARY_PATH&lt;/code&gt;, and &lt;code&gt;.env&lt;/code&gt; files&#10;with the old name keep working.&lt;/p&gt;</description></item></channel></rss>