chore: port 3000 to 4002, use domain instead of IP
This commit is contained in:
Generated
+61
@@ -0,0 +1,61 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731533236,
|
||||||
|
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1785301185,
|
||||||
|
"narHash": "sha256-eoS3KQTO0aPWXZvIaRbRAzSSHW3l5wdMFXtT1ISfoKA=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "9bc02893134c733dd85de46ee4fb2fac696b5529",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
@@ -2,12 +2,12 @@
|
|||||||
"name": "pr-agent-auto-review",
|
"name": "pr-agent-auto-review",
|
||||||
"url": "https://github.com/asepharyana",
|
"url": "https://github.com/asepharyana",
|
||||||
"hook_attributes": {
|
"hook_attributes": {
|
||||||
"url": "http://45.127.35.244:3000/api/v1/github_webhooks",
|
"url": "https://pr-agent.asepharyana.my.id/api/v1/github_webhooks",
|
||||||
"active": true
|
"active": true
|
||||||
},
|
},
|
||||||
"redirect_url": "http://45.127.35.244:3000/setup/callback",
|
"redirect_url": "https://pr-agent.asepharyana.my.id/setup/callback",
|
||||||
"callback_urls": [
|
"callback_urls": [
|
||||||
"http://45.127.35.244:3000/setup/callback"
|
"https://pr-agent.asepharyana.my.id/setup/callback"
|
||||||
],
|
],
|
||||||
"public": false,
|
"public": false,
|
||||||
"default_events": [
|
"default_events": [
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
/nix/store/a2a5pi2w5racrrp9f890wgzsc8zb9zgq-pr-agent-server-1.0.0
|
||||||
+1
-1
@@ -16,7 +16,7 @@ APP_SLUG = "pr-agent-auto"
|
|||||||
DESCRIPTION = "Automated PR review and merge bot powered by AI"
|
DESCRIPTION = "Automated PR review and merge bot powered by AI"
|
||||||
HOME_URL = "https://github.com/asepharyana"
|
HOME_URL = "https://github.com/asepharyana"
|
||||||
PUBLIC_IP = "45.127.35.244"
|
PUBLIC_IP = "45.127.35.244"
|
||||||
PORT = 3000
|
PORT = 4002
|
||||||
WEBHOOK_URL = f"http://{PUBLIC_IP}:{PORT}/api/v1/github_webhooks"
|
WEBHOOK_URL = f"http://{PUBLIC_IP}:{PORT}/api/v1/github_webhooks"
|
||||||
REDIRECT_URL = f"http://{PUBLIC_IP}:{PORT}/app-setup-complete"
|
REDIRECT_URL = f"http://{PUBLIC_IP}:{PORT}/app-setup-complete"
|
||||||
CALLBACK_URLS = [f"http://{PUBLIC_IP}:{PORT}/callback"]
|
CALLBACK_URLS = [f"http://{PUBLIC_IP}:{PORT}/callback"]
|
||||||
|
|||||||
+1
-1
@@ -10,6 +10,6 @@ from pr_agent.servers.github_app import app
|
|||||||
import uvicorn
|
import uvicorn
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
port = int(os.environ.get("PORT", "3000"))
|
port = int(os.environ.get("PORT", "4002"))
|
||||||
print(f"Starting PR-Agent GitHub App server on 0.0.0.0:{port}")
|
print(f"Starting PR-Agent GitHub App server on 0.0.0.0:{port}")
|
||||||
uvicorn.run(app, host="0.0.0.0", port=port, log_level="info")
|
uvicorn.run(app, host="0.0.0.0", port=port, log_level="info")
|
||||||
|
|||||||
Reference in New Issue
Block a user