diff --git a/.devcontainer/README.md b/.devcontainer/README.md index a6069f1c..1ddcb7f8 100644 --- a/.devcontainer/README.md +++ b/.devcontainer/README.md @@ -2,4 +2,19 @@ You need to run all dependencies with `deps` command before you start debugging. -Make sure your local IP is correct in `.vscode/launch.json`, +Create `.env.development` in repository root. Make sure your local IP is correct. + +```sh +NEKO_WEBRTC_NAT1TO1=10.0.0.8 +``` + +# without container + +- Make sure `pulseaudio` contains correct configuration. +- Specify `DISPLAY` that is being used by xorg. + +```sh +DISPLAY=:0 +NEKO_WEBRTC_NAT1TO1=10.0.0.8 +NEKO_SERVER_BIND=:3000 +``` diff --git a/.gitignore b/.gitignore index 5e85427e..d13f1364 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ bin/ .idea +.env.development diff --git a/.vscode/launch.json b/.vscode/launch.json index 1cf4b94e..4973993a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -7,12 +7,14 @@ { "name": "launch", "type": "go", + "debugAdapter": "dlv-dap", "request": "launch", "mode": "debug", "program": "${workspaceFolder}/cmd/neko", "output": "${workspaceFolder}/bin/debug/neko", "cwd": "${workspaceFolder}/", - "args": ["serve", "-d", "--webrtc.nat1to1", "192.168.1.80"] + "args": ["serve", "-d", "-c", "dev/runtime/config.yml"], + "envFile": "${workspaceFolder}/.env.development" } ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index f30aa6f0..8645d8f0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,14 +3,7 @@ "go.inferGopath": false, "go.autocompleteUnimportedPackages": true, "go.delveConfig": { - "useApiV1": false, - "dlvLoadConfig": { - "followPointers": true, - "maxVariableRecurse": 3, - "maxStringLen": 400, - "maxArrayValues": 400, - "maxStructFields": -1 - } + "useApiV1": false }, "[go]": { "editor.formatOnSave": true,