Merge branch 'master' of fornaxian.com:Pixeldrain/pixeldrain-web
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Init initializes the Pixeldrain Web UI controllers
|
// Init initializes the Pixeldrain Web UI controllers
|
||||||
func Init(r *httprouter.Router, prefix string) {
|
func Init(r *httprouter.Router, prefix string, setLogLevel bool) {
|
||||||
log.Info("Starting web UI server (PID %v)", os.Getpid())
|
log.Info("Starting web UI server (PID %v)", os.Getpid())
|
||||||
|
|
||||||
var webconf = &conf.PixelWebConfig{}
|
var webconf = &conf.PixelWebConfig{}
|
||||||
@@ -27,5 +27,9 @@ func Init(r *httprouter.Router, prefix string) {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !webconf.DebugMode && setLogLevel {
|
||||||
|
log.SetLogLevel(log.LevelInfo)
|
||||||
|
}
|
||||||
|
|
||||||
webcontroller.New(r, prefix, webconf)
|
webcontroller.New(r, prefix, webconf)
|
||||||
}
|
}
|
||||||
|
2
main.go
2
main.go
@@ -15,7 +15,7 @@ import (
|
|||||||
func main() {
|
func main() {
|
||||||
r := httprouter.New()
|
r := httprouter.New()
|
||||||
|
|
||||||
web.Init(r, "")
|
web.Init(r, "", true)
|
||||||
|
|
||||||
err := http.ListenAndServe(":8081", r)
|
err := http.ListenAndServe(":8081", r)
|
||||||
|
|
||||||
|
@@ -49,7 +49,7 @@
|
|||||||
(Click the white box)
|
(Click the white box)
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align: center;">
|
<td style="text-align: center;">
|
||||||
<div class="g-recaptcha" data-theme="dark" data-sitekey="6LdEeQ0TAAAAALBmDF_k_2LgbpuJM66PGspByViS"></div>
|
<div class="g-recaptcha" data-theme="dark" data-sitekey="6Lfbzz4UAAAAAAaBgox1R7jU0axiGneLDkOA-PKf"></div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="form">
|
<tr class="form">
|
||||||
|
@@ -47,38 +47,6 @@
|
|||||||
filesystem and served from Sia on the next request.
|
filesystem and served from Sia on the next request.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h2>News</h2>
|
|
||||||
<h3>Data loss has occurred</h3>
|
|
||||||
<p>
|
|
||||||
As noted at the start of this page, the integration with Sia
|
|
||||||
cloud storage is highly experimental, everyone who uses this
|
|
||||||
service should be aware of that fact.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
I recently discovered that the Sia node that is storing the
|
|
||||||
files for this website had crashed because of a memory leak. The
|
|
||||||
Sia team is currently trying to figure out how this memory leak
|
|
||||||
occurred. It's likely the contract renewal went wrong which
|
|
||||||
caused the Sia node to become unstable. Now when I start the Sia
|
|
||||||
daemon it eats up about 1 GB of RAM per minute, so I've turned
|
|
||||||
it off for the time being.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
In the short period that the Sia daemon keeps running I managed
|
|
||||||
to request a file listing. It seems that because of the failed
|
|
||||||
contracts about 80% of the stored files have dropped far below
|
|
||||||
1x redundancy, meaning that they are lost. The upside of all
|
|
||||||
this is that the bug has been discovered before version 1.3.3
|
|
||||||
has come out so it might be fixed in the next release, bringing
|
|
||||||
the Sia platform as a whole another step closer to being a
|
|
||||||
reliable data storage solution.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Anyway, don't be surprised if your previously uploaded files are
|
|
||||||
gone now. I will soon start purging all unrecoverable files from
|
|
||||||
the database so we can start over with a clean slate.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<h2>Legality</h2>
|
<h2>Legality</h2>
|
||||||
<p>
|
<p>
|
||||||
I cannot be held liable for any illegal and / or copyrighted
|
I cannot be held liable for any illegal and / or copyrighted
|
||||||
@@ -92,6 +60,10 @@
|
|||||||
and I'll take care of it.
|
and I'll take care of it.
|
||||||
<br/>Please share responsibly.
|
<br/>Please share responsibly.
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
For other questions you can reach me at
|
||||||
|
<a href="mailto:support@pixeldrain.com">support@pixeldrain.com</a>
|
||||||
|
</p>
|
||||||
<h2>Funding</h2>
|
<h2>Funding</h2>
|
||||||
<p>
|
<p>
|
||||||
I'm currently paying for the Sia storage myself, since the site
|
I'm currently paying for the Sia storage myself, since the site
|
||||||
@@ -128,7 +100,7 @@
|
|||||||
<li>Pasting files from the clipboard</li>
|
<li>Pasting files from the clipboard</li>
|
||||||
<li>Current viewer count on files/lists</li>
|
<li>Current viewer count on files/lists</li>
|
||||||
<li>File revisions (update a file without changing the URL)</li>
|
<li>File revisions (update a file without changing the URL)</li>
|
||||||
<li>Proper file manager with directories (upcoming)</li>
|
<li>Proper file manager with directories (in progress)</li>
|
||||||
<li>Plenty more!</li>
|
<li>Plenty more!</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h3>Missing</h3>
|
<h3>Missing</h3>
|
||||||
@@ -143,7 +115,7 @@
|
|||||||
<li>Some video formats (mime type detection is not complete)</li>
|
<li>Some video formats (mime type detection is not complete)</li>
|
||||||
<li>Bandwidth Tracker</li>
|
<li>Bandwidth Tracker</li>
|
||||||
<li>View counter</li>
|
<li>View counter</li>
|
||||||
<li>Seasonal themes (thou shalt celebrate christmas!)</li>
|
<li>Seasonal themes</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h2>Style selector</h2>
|
<h2>Style selector</h2>
|
||||||
|
Reference in New Issue
Block a user