Browse Source

Update .gitignore and server configurations

pull/33/head
Wayne 10 months ago
parent
commit
0be94ee1b5
  1. 1
      .gitignore
  2. 2
      client/p.py
  3. 2
      server/fabric_api_server.py
  4. 5
      server/fabric_web_interface/fabric_web_server.py

1
.gitignore vendored

@ -123,6 +123,7 @@ celerybeat.pid
# Environments
.env
env/
.venv/
venv/
ENV/
env.bak/

2
client/p.py

@ -1,4 +1,4 @@
#!/Users/jonathandunn/myAugmented/.venv/bin/python
#!/usr/bin/env python3
import pyperclip

2
server/fabric_api_server.py

@ -136,4 +136,4 @@ def extwis():
# Run the application
if __name__ == "__main__":
app.run(host="1.1.1.1", port=13337, debug=True)
app.run(host="127.0.0.1", port=13337, debug=True)

5
server/fabric_web_interface/fabric_web_server.py

@ -2,6 +2,7 @@ from flask import Flask, render_template, request, redirect, url_for, flash, ses
import requests
import json
from flask import send_from_directory
import os
##################################################
##################################################
@ -15,7 +16,7 @@ from flask import send_from_directory
def send_request(prompt, endpoint):
base_url = "http://hostorip.tld:13337"
base_url = "http://127.0.0.1:13337"
url = f"{base_url}{endpoint}"
headers = {
"Content-Type": "application/json",
@ -54,4 +55,4 @@ def index():
if __name__ == "__main__":
app.run(host="172.30.0.176", port=13338, debug=True)
app.run(host="127.0.0.1", port=13338, debug=True)

Loading…
Cancel
Save