mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-10 07:10:31 +00:00
Update .gitignore and server configurations
This commit is contained in:
parent
f52f2ee488
commit
0be94ee1b5
1
.gitignore
vendored
1
.gitignore
vendored
@ -123,6 +123,7 @@ celerybeat.pid
|
|||||||
# Environments
|
# Environments
|
||||||
.env
|
.env
|
||||||
env/
|
env/
|
||||||
|
.venv/
|
||||||
venv/
|
venv/
|
||||||
ENV/
|
ENV/
|
||||||
env.bak/
|
env.bak/
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/Users/jonathandunn/myAugmented/.venv/bin/python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import pyperclip
|
import pyperclip
|
||||||
|
|
||||||
|
@ -136,4 +136,4 @@ def extwis():
|
|||||||
|
|
||||||
# Run the application
|
# Run the application
|
||||||
if __name__ == "__main__":
|
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)
|
||||||
|
@ -2,6 +2,7 @@ from flask import Flask, render_template, request, redirect, url_for, flash, ses
|
|||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
from flask import send_from_directory
|
from flask import send_from_directory
|
||||||
|
import os
|
||||||
|
|
||||||
##################################################
|
##################################################
|
||||||
##################################################
|
##################################################
|
||||||
@ -15,7 +16,7 @@ from flask import send_from_directory
|
|||||||
|
|
||||||
|
|
||||||
def send_request(prompt, endpoint):
|
def send_request(prompt, endpoint):
|
||||||
base_url = "http://hostorip.tld:13337"
|
base_url = "http://127.0.0.1:13337"
|
||||||
url = f"{base_url}{endpoint}"
|
url = f"{base_url}{endpoint}"
|
||||||
headers = {
|
headers = {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
@ -54,4 +55,4 @@ def index():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
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…
Reference in New Issue
Block a user