You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Roshless 20e033a7f8 add new https config option 2 weeks ago
api add new https config option 2 weeks ago
assets Initial commit 1 month ago
cmd update path to add admin script 1 month ago
config add new https config option 2 weeks ago
database add database migration script 1 month ago
dist add new https config option 2 weeks ago
helpers Logging in API 2 weeks ago
templates Initial commit 1 month ago
views add new https config option 2 weeks ago
.gitignore Initial commit 1 month ago
LICENSE Initial commit 1 month ago
README.md Initial commit 1 month ago
TODO.md Initial commit 1 month ago
go.mod Initial commit 1 month ago
go.sum Initial commit 1 month ago
main.go Initial commit 1 month ago

README.md

gofu

simple file share service in go

nginx example config:

limit_req_zone $binary_remote_addr zone=limits:10m rate=10r/s;

server {
  listen 80;
  listen [::]:80;
  server_name paste.domain.tld;
  return 301 https://$server_name$request_uri;
}

server {
  listen 443 ssl http2;
  listen [::]:443 ssl http2;
  server_name paste.domain.tld;

  client_max_body_size 35M; # set desired max file size
  limit_req zone=limits burst=20 nodelay;
  limit_req_log_level warn;

  ssl_certificate /etc/letsencrypt/live/paste.domain.tld/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/paste.domain.tld/privkey.pem;
  
  location / {
    proxy_pass http://127.0.0.1:9090;
    #proxy_pass  http://unix:/path/to/socket.sock;

    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-Proto $scheme;
  }
}