Deploying to gh-pages from @ mailcow/mailcow-dockerized-docs@1617b91a09 🚀
Dieser Commit ist enthalten in:
Ursprung
99152aa01b
Commit
7f2f52a10e
4 geänderte Dateien mit 23 neuen und 11 gelöschten Zeilen
16
en/third_party/gogs/third_party-gogs/index.html
gevendort
16
en/third_party/gogs/third_party-gogs/index.html
gevendort
|
@ -2411,7 +2411,13 @@
|
|||
|
||||
|
||||
<p>With Gogs' ability to authenticate over SMTP it is trivial to integrate it with mailcow. Few changes are needed:</p>
|
||||
<p>1. Open <code>docker-compose.override.yml</code> and add Gogs:</p>
|
||||
<p>1. In order to create a database for Gogs, connect to your shell and execute the following commands:
|
||||
<div class="highlight"><pre><span></span><code>source mailcow.conf
|
||||
docker exec -it $(docker ps -f name=mysql-mailcow -q) mysql -uroot -p${DBROOT} -e "CREATE DATABASE gogs;"
|
||||
docker exec -it $(docker ps -f name=mysql-mailcow -q) mysql -uroot -p${DBROOT} -e "CREATE USER 'gogs'@'%' IDENTIFIED BY 'your_strong_password';"
|
||||
docker exec -it $(docker ps -f name=mysql-mailcow -q) mysql -uroot -p${DBROOT} -e "GRANT ALL PRIVILEGES ON gogs.* TO 'gogs'@'%';
|
||||
</code></pre></div></p>
|
||||
<p>2. Open <code>docker-compose.override.yml</code> and add Gogs:</p>
|
||||
<div class="highlight"><pre><span></span><code><span class="nt">version</span><span class="p">:</span><span class="w"> </span><span class="s">'2.1'</span>
|
||||
<span class="nt">services</span><span class="p">:</span>
|
||||
|
||||
|
@ -2426,12 +2432,12 @@
|
|||
<span class="w"> </span><span class="nt">ports</span><span class="p">:</span>
|
||||
<span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="s">"${GOGS_SSH_PORT:-127.0.0.1:4000}:22"</span>
|
||||
</code></pre></div>
|
||||
<p>2. Create <code>data/conf/nginx/site.gogs.custom</code>, add:
|
||||
<p>3. Create <code>data/conf/nginx/site.gogs.custom</code>, add:
|
||||
<div class="highlight"><pre><span></span><code>location /gogs/ {
|
||||
proxy_pass http://gogs:3000/;
|
||||
}
|
||||
</code></pre></div></p>
|
||||
<p>3. Open <code>mailcow.conf</code> and define the binding you want Gogs to use for SSH. Example:</p>
|
||||
<p>4. Open <code>mailcow.conf</code> and define the binding you want Gogs to use for SSH. Example:</p>
|
||||
<div class="highlight"><pre><span></span><code>GOGS_SSH_PORT=127.0.0.1:4000
|
||||
</code></pre></div>
|
||||
<p>5. Run the commands to bring up the Gogs container and restart the nginx-mailcow container afterwards:</p>
|
||||
|
@ -2449,7 +2455,7 @@ docker-compose<span class="w"> </span>restart<span class="w"> </span>nginx-mailc
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p>6. Open <code>http://${MAILCOW_HOSTNAME}/gogs/</code>, for example <code>http://mx.example.org/gogs/</code>. For database details set <code>mysql</code> as database host. Use the value of DBNAME found in mailcow.conf as database name, DBUSER as database user and DBPASS as database password.</p>
|
||||
<p>6. Open <code>http://${MAILCOW_HOSTNAME}/gogs/</code>, for example <code>http://mx.example.org/gogs/</code>. For database details set <code>mysql</code> as database host. Use the value gogs as database name, gogs as database user and your_strong_password you previously definied at step 1 as database password.</p>
|
||||
<p>7. Once the installation is complete, login as admin and set "settings" -> "authorization" -> "enable SMTP". SMTP Host should be <code>postfix</code> with port <code>587</code>, set <code>Skip TLS Verify</code> as we are using an unlisted SAN ("postfix" is most likely not part of your certificate).</p>
|
||||
<p>8. Create <code>data/gogs/gogs/conf/app.ini</code> and set following values. You can consult <a href="https://gogs.io/docs/advanced/configuration_cheat_sheet">Gogs cheat sheet</a> for their meaning and other possible values.</p>
|
||||
<div class="highlight"><pre><span></span><code><span class="k">[server]</span>
|
||||
|
@ -2479,7 +2485,7 @@ docker-compose<span class="w"> </span>restart<span class="w"> </span>nginx-mailc
|
|||
<small>
|
||||
|
||||
Last update:
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_datetime">2023-01-13 18:16:08</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_datetime">2023-02-09 21:47:22</span>
|
||||
|
||||
|
||||
</small>
|
||||
|
|
Dateidiff unterdrĂĽckt, weil mindestens eine Zeile zu lang ist
BIN
sitemap.xml.gz
BIN
sitemap.xml.gz
Binäre Datei nicht angezeigt.
16
third_party/gogs/third_party-gogs/index.html
gevendort
16
third_party/gogs/third_party-gogs/index.html
gevendort
|
@ -2411,7 +2411,13 @@
|
|||
|
||||
|
||||
<p>With Gogs' ability to authenticate over SMTP it is trivial to integrate it with mailcow. Few changes are needed:</p>
|
||||
<p>1. Open <code>docker-compose.override.yml</code> and add Gogs:</p>
|
||||
<p>1. In order to create a database for Gogs, connect to your shell and execute the following commands:
|
||||
<div class="highlight"><pre><span></span><code>source mailcow.conf
|
||||
docker exec -it $(docker ps -f name=mysql-mailcow -q) mysql -uroot -p${DBROOT} -e "CREATE DATABASE gogs;"
|
||||
docker exec -it $(docker ps -f name=mysql-mailcow -q) mysql -uroot -p${DBROOT} -e "CREATE USER 'gogs'@'%' IDENTIFIED BY 'your_strong_password';"
|
||||
docker exec -it $(docker ps -f name=mysql-mailcow -q) mysql -uroot -p${DBROOT} -e "GRANT ALL PRIVILEGES ON gogs.* TO 'gogs'@'%';
|
||||
</code></pre></div></p>
|
||||
<p>2. Open <code>docker-compose.override.yml</code> and add Gogs:</p>
|
||||
<div class="highlight"><pre><span></span><code><span class="nt">version</span><span class="p">:</span><span class="w"> </span><span class="s">'2.1'</span>
|
||||
<span class="nt">services</span><span class="p">:</span>
|
||||
|
||||
|
@ -2426,12 +2432,12 @@
|
|||
<span class="w"> </span><span class="nt">ports</span><span class="p">:</span>
|
||||
<span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="s">"${GOGS_SSH_PORT:-127.0.0.1:4000}:22"</span>
|
||||
</code></pre></div>
|
||||
<p>2. Create <code>data/conf/nginx/site.gogs.custom</code>, add:
|
||||
<p>3. Create <code>data/conf/nginx/site.gogs.custom</code>, add:
|
||||
<div class="highlight"><pre><span></span><code>location /gogs/ {
|
||||
proxy_pass http://gogs:3000/;
|
||||
}
|
||||
</code></pre></div></p>
|
||||
<p>3. Open <code>mailcow.conf</code> and define the binding you want Gogs to use for SSH. Example:</p>
|
||||
<p>4. Open <code>mailcow.conf</code> and define the binding you want Gogs to use for SSH. Example:</p>
|
||||
<div class="highlight"><pre><span></span><code>GOGS_SSH_PORT=127.0.0.1:4000
|
||||
</code></pre></div>
|
||||
<p>5. Run the commands to bring up the Gogs container and restart the nginx-mailcow container afterwards:</p>
|
||||
|
@ -2449,7 +2455,7 @@ docker-compose<span class="w"> </span>restart<span class="w"> </span>nginx-mailc
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p>6. Open <code>http://${MAILCOW_HOSTNAME}/gogs/</code>, for example <code>http://mx.example.org/gogs/</code>. For database details set <code>mysql</code> as database host. Use the value of DBNAME found in mailcow.conf as database name, DBUSER as database user and DBPASS as database password.</p>
|
||||
<p>6. Open <code>http://${MAILCOW_HOSTNAME}/gogs/</code>, for example <code>http://mx.example.org/gogs/</code>. For database details set <code>mysql</code> as database host. Use the value gogs as database name, gogs as database user and your_strong_password you previously definied at step 1 as database password.</p>
|
||||
<p>7. Once the installation is complete, login as admin and set "settings" -> "authorization" -> "enable SMTP". SMTP Host should be <code>postfix</code> with port <code>587</code>, set <code>Skip TLS Verify</code> as we are using an unlisted SAN ("postfix" is most likely not part of your certificate).</p>
|
||||
<p>8. Create <code>data/gogs/gogs/conf/app.ini</code> and set following values. You can consult <a href="https://gogs.io/docs/advanced/configuration_cheat_sheet">Gogs cheat sheet</a> for their meaning and other possible values.</p>
|
||||
<div class="highlight"><pre><span></span><code><span class="k">[server]</span>
|
||||
|
@ -2479,7 +2485,7 @@ docker-compose<span class="w"> </span>restart<span class="w"> </span>nginx-mailc
|
|||
<small>
|
||||
|
||||
Last update:
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_datetime">2023-01-13 18:16:08</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_datetime">2023-02-09 21:47:22</span>
|
||||
|
||||
|
||||
</small>
|
||||
|
|
Laden …
In neuem Issue referenzieren