-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Manual proxy configuration & some refactors (#81)
- Loading branch information
Showing
162 changed files
with
7,341 additions
and
5,442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
examples | ||
Makefile | ||
Dockerfile | ||
compose.yml | ||
docs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,15 +5,15 @@ RUN npm ci | |
COPY ./cmd/serve/front . | ||
RUN npm run build | ||
|
||
FROM golang:1.21-alpine AS builder | ||
FROM golang:1.23-alpine AS builder | ||
# build-base needed to compile the sqlite3 dependency | ||
RUN apk add --update-cache build-base | ||
WORKDIR /app | ||
COPY go.* ./ | ||
RUN go mod download | ||
COPY . . | ||
COPY --from=front_builder /app/build ./cmd/serve/front/build | ||
RUN go build -ldflags="-s -w" -o seelf | ||
RUN make build-back | ||
|
||
FROM alpine:3.16 | ||
LABEL org.opencontainers.image.authors="[email protected]" \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,20 +7,28 @@ serve-docs: # Launch the docs dev server | |
serve-back: # Launch the backend API and creates an admin user if needed | ||
[email protected] ADMIN_PASSWORD=admin LOG_LEVEL=debug go run main.go serve | ||
|
||
test: # Launch every tests | ||
test-front: # Launch the frontend tests | ||
cd cmd/serve/front && npm i && npm test && cd ../../.. | ||
|
||
test-back: # Launch the backend tests | ||
go vet ./... | ||
go test ./... --cover | ||
|
||
test: test-front test-back # Launch every tests | ||
|
||
ts: # Print the current timestamp, useful for migrations | ||
@date +%s | ||
|
||
outdated: # Print direct dependencies and their latest version | ||
go list -v -u -m -f '{{if not .Indirect}}{{.}}{{end}}' all | ||
|
||
build: # Build the final binary for the current platform | ||
build-front: # Build the frontend | ||
cd cmd/serve/front && npm i && npm run build && cd ../../.. | ||
go build -ldflags="-s -w" -o seelf | ||
|
||
build-back: # Build the backend | ||
go build -tags release -ldflags="-s -w" -o seelf | ||
|
||
build: build-front build-back # Build the final binary for the current platform | ||
|
||
build-docs: # Build the docs | ||
npm i && npm run docs:build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script lang="ts"> | ||
import l from '$lib/localization'; | ||
export let scheme: string; | ||
export let host: string; | ||
export let appName: string; | ||
export let prefix = ''; | ||
export let suffix = ''; | ||
</script> | ||
|
||
{#if scheme} | ||
{scheme}{prefix}{appName}{suffix}.{host} | ||
{:else} | ||
- ({l.translate('target.manual_proxy')}) | ||
{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.