GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ggtrd/share: Self-hosted solution to securely share passwords and large files

BranchesTags
Open more actions menu

Latest commit

 

History

334 Commits
334 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
pkg
pkg
 
 
static
static
 
 
templates
templates
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
main.go
main.go
 
 

Repository files navigation

logo

Share

:octocat: Github     🐳 Docker Hub
šŸš€ Demo (wait for Render to instanciate it)

Share is a secure web service designed to safely transfer passwords, rich text, code snippets, and large files.
āž”ļø Simply paste your content or upload a file, generate a secure link, and deliver it safely to your recipient !

Features

  • Securely send:
    • Passwords
    • Rich text
    • Code snippets
    • Large files (to bypass email provider attachments size limitation)
  • Send simple one-clicks links to your recipient (basic links and passwords supported too)
  • Automatic self-destruction
  • Automatic strong password generation
  • Fully customizable (logo and colors)
  • Responsive interface
  • No account required
  • Self-hosted solution
  • CLI available for administrative tasks
  • Share passwords are protected using OpenPGP encryption (GopenPGP & OpenPGP.js)

Tips
āž”ļø Share integrates seamlessly with reverse proxy authentication. For example, you can allow internal-only share creation while keeping unlock pages publicly accessible. See the example below.


demo gif

Install from sources

  • Install sources
     git clone [email protected]:ggtrd/share.git \
     && cd share \
     && go mod tidy \
     && go build
    
  • Initialize database
     ./share init
    
  • Start
     ./share web
    

Install with Docker

  • Get docker-compose.yml
     curl -O https://raw.githubusercontent.com/ggtrd/share/refs/heads/main/docker-compose.yml
    
  • Get .env
     curl https://raw.githubusercontent.com/ggtrd/share/refs/heads/main/.env.example -o .env
    
  • Fill .env according to your needs
  • Start
     docker compose up -d
    

Use the CLI

If run with Docker: docker exec -it <container> sh

./share help

Customization

demo gif

Customizations are handled within /static/custom directory.
A default mount point is configured in docker-compose.yml.
CSS overwrites must be placed in /static/custom/theme.css file.

Logo

  • Drop an image at /static/custom/logo.png or /static/custom/logo.svg
  • (optional) drop a darkmode image at /static/custom/logo-darkmode.png or /static/custom/logo-darkmode.svg
  • Overwrite logo size
:root {
    --logo-height: 60px;
}

Color

  • Overwrite color

    A color theme will be automatically calculated from this color

:root {
    --color: #4cd137;
}

Advanced

Instance details

Details (such as version) are available at URL/about

Reverse proxy example

Apache HTTP Server with authentication on share creation

sudo a2enmod ssl proxy proxy_http
/etc/apache2/sites-available/001-share.conf
ServerName share.<domain>

<VirtualHost *:80>
        Redirect permanent / https://share.<domain>
</VirtualHost>

<VirtualHost *:443>
	SSLEngine on
	SSLCertificateFile      /etc/ssl/certs/<cert>.pem
	SSLCertificateKeyFile   /etc/ssl/private/<cert>.key

	# Allow everyone to get /share (= unlock share page)
	<Location "/share">
		AuthType none
		Satisfy any
	</Location>

	# Allow everyone to get /static (= style, images and JS files)
	<Location "/static">
		AuthType none
		Satisfy any
	</Location>

	# Require an authentication for everything else like /secret and /files (= create shares)
	# The authentication can be anything (basic auth, OIDC etc...)
	<Location "/">
		AuthType Basic
		AuthUserFile /etc/apache2/.htpasswd
		Require valid-user
	</Location>

	ProxyPreserveHost On
	ProxyRequests On
	ProxyPass / http://0.0.0.0:8080/
	ProxyPassReverse / http://0.0.0.0:8080/
</VirtualHost>
sudo a2ensite 001-share.conf

Disclaimer

OpenPGP is used to cipher the password of a share when unlocking. It doesn't cipher anything else (like file download for example), please consider using HTTPS with a TLS certificate.


License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Self-hosted solution to securely share passwords and large files

Topics

customizable-uifile-expirationfile-sharinggolangpassword-expirationpassword-sharingreverse-proxy-authenticationsecretsecrets-sharingsecureself-hostedsharewhite-label

Resources

Readme
MIT license
Activity

Stars

14 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.