Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ clio Public

Clio is an AI-driven content treasure trove.

License

Notifications You must be signed in to change notification settings

betterde/clio

Repository files navigation

Introduction

This project is used to quickly create a project based on the Fiber framework and presets some basic configurations.

Download template locally with gonew

Install gonew if you have not already.

go install golang.org/x/tools/cmd/gonew@latest

Download this template locally:

gonew github.com/betterde/template/fiber your.domain/module

Config

env: production
http:
 listen: 0.0.0.0:8443
 tlsKey: /certs/domain.tld.key
 tlsCert: /certs/domain.tld.crt
logging:
 level: ERROR

Environment

PREFIX=
# General configration
${PREFIX}_ENV=production
${PREFIX}_LOGGING_LEVEL=INFO
# API configuration
${PREFIX}_HTTP_LISTEN=0.0.0.0:443
# TLS File provider
${PREFIX}_HTTP_TLSKEY=/certs/domain.tld.key
${PREFIX}_HTTP_TLSCERT=/certs/domain.tld.crt

Frontend

Initialize your project in the spa directory, configure the project to be packaged and output to the spa/dist directory, and then uncomment lines 30 to 35 in the api/routes/register.go file:

app.Get("*", filesystem.New(filesystem.Config{
	Root: spa.Serve(),
	Index: "index.html",
	NotFoundFile: "index.html",
	ContentTypeCharset: "UTF-8",
})).Name("SPA static resource")

About

Clio is an AI-driven content treasure trove.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /