Skip to content

Commit

Permalink
add dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
fifsky committed Mar 18, 2020
1 parent 4267a07 commit 23ec155
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func main() {
gen := generator.NewGenerator(db)

c := cors.New(cors.Options{
AllowedOrigins: []string{"http://api.fifsky.com","https://api.fifsky.com"},
AllowedOrigins: []string{"http://go.fifsky.com","https://go.fifsky.com"},
})

handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ require (
github.com/ilibs/gosql/v2 v2.0.2
github.com/mattn/go-runewidth v0.0.8 // indirect
github.com/olekukonko/tablewriter v0.0.4
github.com/rs/cors v1.7.0 // indirect
github.com/rs/cors v1.7.0
)
2 changes: 1 addition & 1 deletion web/.umirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default defineConfig({
routes: [{ path: '/', component: '@/pages/index' }],
proxy: {
'/api': {
target: 'http://127.0.0.1:8881',
target: 'http://127.0.0.1:8989',
changeOrigin: true,
},
},
Expand Down
3 changes: 3 additions & 0 deletions web/Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:2015
gzip
root /usr/share/caddy/

0 comments on commit 23ec155

Please sign in to comment.