Skip to content

Commit

Permalink
fix: update port number from 7701 to 10060
Browse files Browse the repository at this point in the history
  • Loading branch information
kangfenmao committed Dec 8, 2023
1 parent eaf724a commit e42936e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ RUN go build -tags netgo -o vortexnotes

FROM alpine:latest
COPY --from=builder /app/vortexnotes /app/vortexnotes
EXPOSE 7701
EXPOSE 10060
CMD ["/app/vortexnotes"]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ services:
container_name: vortexnotes
image: kangfenmao/vortexnotes:latest
ports:
- "7701:7701"
- "10060:10060"
volumes:
- ./app/data/notes:/data/notes
- ./app/data/vortexnotes:/data/vortexnotes
- ./app/data/notes:/app/data/notes
- ./app/data/vortexnotes:/app/data/vortexnotes
```

Private access with passcode:
Expand Down
10 changes: 7 additions & 3 deletions backend/config/const.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
package config

import "os"
import (
"os"
"path/filepath"
)

var basePath, _ = os.Getwd()
var exePath, _ = os.Executable()
var basePath = filepath.Dir(exePath)
var LocalNotePath = basePath + "/data/notes/"
var AppDataPath = basePath + "/data/vortexnotes/"
var AppDbPath = AppDataPath + "app.db"
var IndexPath = AppDataPath + "notes.bleve"

const ApiHost = "0.0.0.0"
const ApiPort = "7701"
const ApiPort = "10060"
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
VORTEXNOTES_PASSCODE: 123456
VORTEXNOTES_AUTH_SCOPE: create,edit,delete
ports:
- "0.0.0.0:7701:7701"
- "0.0.0.0:10060:10060"
volumes:
- ./app/data/notes:/data/notes
- ./app/data/vortexnotes:/data/vortexnotes
2 changes: 1 addition & 1 deletion frontend/src/config/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import axios from 'axios'

export const getAxiosInstance = () => {
const instance = axios.create({
baseURL: location.origin.replace('7702', '7701') + '/api/',
baseURL: location.origin.replace('10061', '10060') + '/api/',
headers: {
Authorization: localStorage.vortexnotes_passcode
? 'Bearer ' + localStorage.vortexnotes_passcode
Expand Down
2 changes: 1 addition & 1 deletion frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { fileURLToPath } from 'node:url'
// https://vitejs.dev/config/
export default defineConfig({
server: {
port: 7702,
port: 10061,
host: '0.0.0.0'
},
resolve: {
Expand Down

0 comments on commit e42936e

Please sign in to comment.