Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Ephemeral
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Volkor Barbarian Warrior
Ephemeral
Commits
3438a655
Verified
Commit
3438a655
authored
1 year ago
by
Volkor Barbarian Warrior
Browse files
Options
Downloads
Patches
Plain Diff
fix: add example sharex config, and add /my_files url on main page
parent
e70bd1c3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/main.rs
+1
-0
1 addition, 0 deletions
src/main.rs
static/example.com.sxcu
+9
-0
9 additions, 0 deletions
static/example.com.sxcu
templates/localhost:8282/upload.html
+3
-0
3 additions, 0 deletions
templates/localhost:8282/upload.html
with
13 additions
and
0 deletions
src/main.rs
+
1
−
0
View file @
3438a655
...
...
@@ -135,6 +135,7 @@ async fn main() {
.push
(
Router
::
with_path
(
"/dmca"
)
.get
(
handlers
::
serve_static
::
serve_static
))
.push
(
Router
::
with_path
(
"/welcome"
)
.get
(
handlers
::
serve_static
::
serve_static
))
.push
(
Router
::
with_path
(
"/metrics"
)
.get
(
handlers
::
serve_metrics
::
serve_metrics
))
// Might want to actually make a .ico instead of serving a webp image.
.push
(
Router
::
with_path
(
"/favicon.ico"
)
.get
(
StaticFile
::
new
(
"static/favicon32.webp"
)))
.push
(
Router
::
with_path
(
"/robots.txt"
)
.get
(
StaticFile
::
new
(
"static/robots.txt"
)))
// Static File Serving
...
...
This diff is collapsed.
Click to expand it.
static/example.com.sxcu
0 → 100644
+
9
−
0
View file @
3438a655
{
"Name": "example.com file uploader",
"DestinationType": "FileUploader",
"RequestURL": "https://example.com",
"FileFormName": "file",
"ResponseType": "Text",
"URL": "$json:url$",
"DeletionURL": "$json:deletionurl$"
}
This diff is collapsed.
Click to expand it.
templates/localhost:8282/upload.html
+
3
−
0
View file @
3438a655
...
...
@@ -26,6 +26,9 @@
<p
class=
"note"
>
This storage is not permanent, check the FAQ page for details
<br>
By uploading you agree to the ToS and
Privacy Policy
</p>
<ul
class=
"links"
>
<li>
<a
href=
"/my_files"
>
Your Files
</a>
</li>
<li>
<a
href=
"/services"
>
Services
</a>
</li>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment