Skip to content

Commit

Permalink
Merge pull request #291 from Unpackerr/unstable
Browse files Browse the repository at this point in the history
Add web server to unpackerr.
  • Loading branch information
davidnewhall authored May 25, 2023
2 parents d9023a4 + d301392 commit 3e8ce7c
Show file tree
Hide file tree
Showing 22 changed files with 733 additions and 232 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
fetch-depth: '0'
- uses: actions/setup-go@v3
with:
go-version: 'stable'
go-version: '1.20'
- name: go-generate
run: go generate ./...
- name: make-signdmg
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
fetch-depth: '0'
- uses: actions/setup-go@v3
with:
go-version: 'stable'
go-version: '1.20'
- name: make-release
id: release
run: |
Expand Down
10 changes: 10 additions & 0 deletions examples/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,16 @@ services:
- UN_CMDHOOK_0_SHELL=false
- UN_CMDHOOK_0_EXCLUDE_0=
- UN_CMDHOOK_0_EVENTS_0=0
# Web Server Config
- UN_WEBSERVER_METRICS=false
- UN_WEBSERVER_LISTEN_ADDR=0.0.0.0:5656
- UN_WEBSERVER_LOG_FILE=
- UN_WEBSERVER_LOG_FILES=10
- UN_WEBSERVER_LOG_FILE_MB=10
- UN_WEBSERVER_SSL_CERT_FILE=
- UN_WEBSERVER_SSL_KEY_FILE=
- UN_WEBSERVER_URLBASE=/
- UN_WEBSERVER_UPSTREAMS=

security_opt:
- no-new-privileges:true
20 changes: 20 additions & 0 deletions examples/unpackerr.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,26 @@ parallel = 1
file_mode = "0644"
dir_mode = "0755"

[webserver]
## The web server currently only supports metrics; set this to true if you wish to use it.
metrics = false
## This may be set to a port or an ip:port to bind a specific IP. 0.0.0.0 binds ALL IPs.
listen_addr = "0.0.0.0:5656"
## Recommend setting a log file for HTTP requests. Otherwise, they go with other logs.
log_file = ""
## This app automatically rotates logs. Set these to the size and number to keep.
log_files = 10
log_file_mb = 10
## Set both of these to valid file paths to enable HTTPS/TLS.
ssl_cert_file = ""
ssl_key_file = ""
## Base URL from which to serve content.
urlbase = "/"
## Upstreams should be set to the IP or CIDR of your trusted upstream proxy.
## Setting this correctly allows X-Forwarded-For to be used in logs.
## In the future it may control auth proxy trust. Must be a list of strings.
upstreams = [ ] # example: upstreams = [ "127.0.0.1/32", "10.1.2.0/24" ]

##-Notes-#######-READ THIS!!!-##################################################
## The following sections can be repeated if you have more than one Sonarr, ##
## Radarr or Lidarr, Readarr, Folder, Webhook, or Command Hook. ##
Expand Down
40 changes: 27 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,57 +1,71 @@
module github.com/Unpackerr/unpackerr

go 1.19
go 1.20

require (
github.com/fsnotify/fsnotify v1.6.0
github.com/gen2brain/dlgs v0.0.0-20220603100644-40c77870fa8d
github.com/getlantern/systray v1.2.1
github.com/getlantern/systray v1.2.2
github.com/gonutz/w32 v1.0.0
github.com/hako/durafmt v0.0.0-20210608085754-5c1018a4e16b
github.com/julienschmidt/httprouter v1.3.0
github.com/lestrrat-go/apache-logformat/v2 v2.0.6
github.com/mitchellh/go-homedir v1.1.0
github.com/prometheus/client_golang v1.15.1
github.com/radovskyb/watcher v1.0.7
github.com/spf13/pflag v1.0.6-0.20201009195203-85dd5c8bc61c
golang.org/x/mod v0.10.0
golift.io/cnfg v0.2.2
golift.io/cnfgfile v0.0.0-20230324082957-6be76a6e033e
golift.io/rotatorr v0.0.0-20230317103044-d974d22ee164
golift.io/starr v0.14.1-0.20230105161307-212936057ff2
golift.io/cnfgfile v0.0.0-20230519070633-a07e5db66d2d
golift.io/rotatorr v0.0.0-20230520191821-3b26224a1624
golift.io/starr v0.14.1-0.20230519072620-7ed4f9cf36d2
golift.io/version v0.0.2
golift.io/xtractr v0.2.2
)

require (
github.com/BurntSushi/toml v1.2.1 // indirect
github.com/andybalholm/brotli v1.0.5 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bodgit/plumbing v1.3.0 // indirect
github.com/bodgit/sevenzip v1.4.1 // indirect
github.com/bodgit/windows v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/getlantern/context v0.0.0-20220418194847-3d5e7a086201 // indirect
github.com/getlantern/errors v1.0.3 // indirect
github.com/getlantern/golog v0.0.0-20230206140254-6d0a2e0f79af // indirect
github.com/getlantern/golog v0.0.0-20230503153817-8e72de7e0a65 // indirect
github.com/getlantern/hex v0.0.0-20220104173244-ad7e4b9194dc // indirect
github.com/getlantern/hidden v0.0.0-20220104173330-f221c5a24770 // indirect
github.com/getlantern/ops v0.0.0-20230424193308-26325dfed3cf // indirect
github.com/getlantern/ops v0.0.0-20230519221840-1283e026181c // indirect
github.com/go-logr/logr v1.2.4 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/gopherjs/gopherjs v1.17.2 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/kdomanski/iso9660 v0.3.3 // indirect
github.com/kdomanski/iso9660 v0.3.5 // indirect
github.com/klauspost/compress v1.16.5 // indirect
github.com/lestrrat-go/strftime v1.0.6 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/nwaples/rardecode v1.1.3 // indirect
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c // indirect
github.com/pierrec/lz4/v4 v4.1.17 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_model v0.4.0 // indirect
github.com/prometheus/common v0.44.0 // indirect
github.com/prometheus/procfs v0.10.0 // indirect
github.com/ulikunitz/xz v0.5.11 // indirect
go.opentelemetry.io/otel v1.14.0 // indirect
go.opentelemetry.io/otel/trace v1.14.0 // indirect
go.uber.org/atomic v1.10.0 // indirect
go.opentelemetry.io/otel v1.16.0 // indirect
go.opentelemetry.io/otel/metric v1.16.0 // indirect
go.opentelemetry.io/otel/trace v1.16.0 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.24.0 // indirect
go4.org v0.0.0-20230225012048-214862532bf5 // indirect
golang.org/x/net v0.9.0 // indirect
golang.org/x/sys v0.7.0 // indirect
golang.org/x/net v0.10.0 // indirect
golang.org/x/sys v0.8.0 // indirect
golang.org/x/text v0.9.0 // indirect
google.golang.org/protobuf v1.30.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 3e8ce7c

Please sign in to comment.