-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy photos-network/photos.network to photos-network/photos.network…
…:gh-pages
- Loading branch information
GitHub Actions
committed
Aug 31, 2023
0 parents
commit 209f2eb
Showing
22 changed files
with
1,998 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<!doctype html> | ||
<title>404 Not Found</title> | ||
<h1>404 Not Found</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"> | ||
<title>Photos.network</title> | ||
<subtitle>The main website for Photos.network a self-hosted and open source photo management service.</subtitle> | ||
<link href="https://photos.network/atom.xml" rel="self" type="application/atom+xml"/> | ||
<link href="https://photos.network"/> | ||
<generator uri="https://www.getzola.org/">Zola</generator> | ||
<updated>2020-12-28T00:00:00+00:00</updated> | ||
<id>https://photos.network/atom.xml</id> | ||
<entry xml:lang="en"> | ||
<title>Configuration</title> | ||
<published>2020-12-28T00:00:00+00:00</published> | ||
<updated>2020-12-28T00:00:00+00:00</updated> | ||
<author> | ||
<name>Unknown</name> | ||
</author> | ||
<link rel="alternate" href="https://photos.network/documentation/" type="text/html"/> | ||
<id>https://photos.network/documentation/</id> | ||
|
||
<content type="html"><h2 id="minimal-configuration">Minimal configuration</h2> | ||
<pre data-lang="json" style="background-color:#2b303b;color:#c0c5ce;" class="language-json "><code class="language-json" data-lang="json"><span>{ | ||
</span><span> &quot;</span><span style="color:#a3be8c;">internal_url</span><span>&quot;: &quot;</span><span style="color:#a3be8c;">192.168.0.1</span><span>&quot;, | ||
</span><span> &quot;</span><span style="color:#a3be8c;">external_url</span><span>&quot;: &quot;</span><span style="color:#a3be8c;">photos.external.com</span><span>&quot;, | ||
</span><span> &quot;</span><span style="color:#a3be8c;">clients</span><span>&quot;: [ | ||
</span><span> { | ||
</span><span> &quot;</span><span style="color:#a3be8c;">name</span><span>&quot;: &quot;</span><span style="color:#a3be8c;">Frontend</span><span>&quot;, | ||
</span><span> &quot;</span><span style="color:#a3be8c;">client_id</span><span>&quot;: &quot;</span><span style="color:#a3be8c;">&lt;random id&gt;</span><span>&quot;, | ||
</span><span> &quot;</span><span style="color:#a3be8c;">client_secret</span><span>&quot;: &quot;</span><span style="color:#a3be8c;">&lt;random secret&gt;</span><span>&quot;, | ||
</span><span> &quot;</span><span style="color:#a3be8c;">redirect_uris</span><span>&quot;: [ | ||
</span><span> &quot;</span><span style="color:#a3be8c;">http://127.0.0.1:7778/callback</span><span>&quot; | ||
</span><span> ] | ||
</span><span> }, | ||
</span><span> { | ||
</span><span> &quot;</span><span style="color:#a3be8c;">name</span><span>&quot;: &quot;</span><span style="color:#a3be8c;">Android App</span><span>&quot;, | ||
</span><span> &quot;</span><span style="color:#a3be8c;">client_id</span><span>&quot;: &quot;</span><span style="color:#a3be8c;">&lt;random id&gt;</span><span>&quot;, | ||
</span><span> &quot;</span><span style="color:#a3be8c;">client_secret</span><span>&quot;: &quot;</span><span style="color:#a3be8c;">&lt;random secret&gt;</span><span>&quot;, | ||
</span><span> &quot;</span><span style="color:#a3be8c;">redirect_uris</span><span>&quot;: [ | ||
</span><span> &quot;</span><span style="color:#a3be8c;">photosapp://authenticate</span><span>&quot; | ||
</span><span> ] | ||
</span><span> } | ||
</span><span> ], | ||
</span><span> &quot;</span><span style="color:#a3be8c;">addons</span><span>&quot;: [ | ||
</span><span> { | ||
</span><span> &quot;</span><span style="color:#a3be8c;">name</span><span>&quot;: &quot;</span><span style="color:#a3be8c;">api</span><span>&quot; | ||
</span><span> } | ||
</span><span> ] | ||
</span><span>} | ||
</span></code></pre> | ||
<table><thead><tr><th>Properties</th><th>Description</th></tr></thead><tbody> | ||
<tr><td><code>internal_url</code></td><td>Indicates the internal network address.</td></tr> | ||
<tr><td><code>external_url</code></td><td>The external network address e.g.: used to create links for sharing.</td></tr> | ||
<tr><td><code>clients</code></td><td>List of clients e.g. Web frontend or Android.</td></tr> | ||
<tr><td><code>addons</code></td><td>List of addons and their custom configurations.</td></tr> | ||
</tbody></table> | ||
<h2 id="nginx">Nginx</h2> | ||
<p>It is recommended to run <strong>photos.network</strong> behind a reverse proxy like nginx or HAProxy. | ||
First of all, it increases the performance and it prevents from many attacks based on malformed http requests.</p> | ||
<h4 id="nginx-round-robin">Nginx + Round-robin</h4> | ||
<pre data-lang="conf" style="background-color:#2b303b;color:#c0c5ce;" class="language-conf "><code class="language-conf" data-lang="conf"><span style="color:#bf616a;">upstream </span><span>core { | ||
</span><span> </span><span style="color:#bf616a;">server </span><span style="color:#d08770;">127.0.0.1:7777</span><span> fail_timeout=</span><span style="color:#d08770;">0</span><span>; | ||
</span><span>} | ||
</span><span> | ||
</span><span style="color:#bf616a;">upstream </span><span>frontend { | ||
</span><span> </span><span style="color:#bf616a;">server </span><span style="color:#d08770;">127.0.0.1:7778</span><span> fail_timeout=</span><span style="color:#d08770;">0</span><span>; | ||
</span><span>} | ||
</span><span> | ||
</span><span style="color:#b48ead;">server </span><span>{ | ||
</span><span> </span><span style="color:#bf616a;">listen </span><span style="color:#d08770;">80</span><span>; | ||
</span><span> </span><span style="color:#bf616a;">return </span><span style="color:#d08770;">301 https://$host$request_uri</span><span>; | ||
</span><span>} | ||
</span><span> | ||
</span><span style="color:#b48ead;">server </span><span>{ | ||
</span><span> </span><span style="color:#bf616a;">listen </span><span style="color:#d08770;">443</span><span> ssl http2; | ||
</span><span> </span><span style="color:#bf616a;">listen </span><span>[::]:</span><span style="color:#d08770;">443</span><span> ssl http2; | ||
</span><span> </span><span style="color:#bf616a;">client_max_body_size </span><span style="color:#d08770;">4G</span><span>; | ||
</span><span> | ||
</span><span> </span><span style="color:#bf616a;">server_name </span><span>photos.example.com; | ||
</span><span> | ||
</span><span> </span><span style="color:#bf616a;">ssl_certificate </span><span>/etc/secrets/cert.pem; | ||
</span><span> </span><span style="color:#bf616a;">ssl_certificate_key </span><span>/etc/secrets/key.pem; | ||
</span><span> | ||
</span><span style="color:#b48ead;"> location </span><span>/ { | ||
</span><span> </span><span style="color:#bf616a;">proxy_set_header </span><span>Host </span><span style="color:#b48ead;">$http_host</span><span>; | ||
</span><span> </span><span style="color:#bf616a;">proxy_set_header </span><span>X-Forwarded-For </span><span style="color:#b48ead;">$proxy_add_x_forwarded_for</span><span>; | ||
</span><span> </span><span style="color:#bf616a;">proxy_set_header </span><span>X-Forwarded-Proto </span><span style="color:#b48ead;">$scheme</span><span>; | ||
</span><span> </span><span style="color:#bf616a;">proxy_set_header </span><span>X-Real-IP </span><span style="color:#b48ead;">$remote_addr</span><span>; | ||
</span><span> </span><span style="color:#bf616a;">proxy_redirect </span><span style="color:#d08770;">off</span><span>; | ||
</span><span> </span><span style="color:#bf616a;">proxy_buffering </span><span style="color:#d08770;">off</span><span>; | ||
</span><span> </span><span style="color:#bf616a;">proxy_pass </span><span style="color:#d08770;">http://frontend</span><span>; | ||
</span><span> } | ||
</span><span> | ||
</span><span style="color:#b48ead;"> location </span><span>/api { | ||
</span><span> </span><span style="color:#bf616a;">proxy_pass </span><span style="color:#d08770;">http://core</span><span>; | ||
</span><span> } | ||
</span><span> | ||
</span><span style="color:#b48ead;"> location </span><span>/oauth { | ||
</span><span> </span><span style="color:#bf616a;">proxy_pass </span><span style="color:#d08770;">http://core</span><span>; | ||
</span><span> } | ||
</span><span>} | ||
</span><span> | ||
</span></code></pre> | ||
</content> | ||
|
||
</entry> | ||
<entry xml:lang="en"> | ||
<title>Privacy</title> | ||
<published>2020-12-28T00:00:00+00:00</published> | ||
<updated>2020-12-28T00:00:00+00:00</updated> | ||
<author> | ||
<name>Unknown</name> | ||
</author> | ||
<link rel="alternate" href="https://photos.network/privacy/" type="text/html"/> | ||
<id>https://photos.network/privacy/</id> | ||
|
||
<content type="html"><p><a href="https://photos.network">Photos.network</a> is focusing on privacy and will not track any user data.</p> | ||
</content> | ||
|
||
</entry> | ||
<entry xml:lang="en"> | ||
<title>Security</title> | ||
<published>2020-12-28T00:00:00+00:00</published> | ||
<updated>2020-12-28T00:00:00+00:00</updated> | ||
<author> | ||
<name>Unknown</name> | ||
</author> | ||
<link rel="alternate" href="https://photos.network/security/" type="text/html"/> | ||
<id>https://photos.network/security/</id> | ||
|
||
<content type="html"><p>If you think that you have found a security vulnerability in Photos.network, please disclose it to us via our security e-mail address at <a href="mailto:[email protected]">[email protected]</a>.</p> | ||
<p>Please do not make vulnerabilities public without notifying us and giving us at least 2 weeks to respond.</p> | ||
<p>If you are going to write about Photos.network’s security, please get in touch, so we can make sure that all claims are correct.</p> | ||
</content> | ||
|
||
</entry> | ||
</feed> |
Oops, something went wrong.