This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def http_connection(): | |
connection = [] | |
try: | |
connection = FrappeClient("https://erp-site.com", "username or email", "password") | |
except SocketTimeout as st: | |
print("Connection to %s timed out. (timeout=%s)" % (st.host, st.timeout)) | |
connection = False | |
except SocketError as e: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####### | |
### NGINX Reverse-Proxy to mailcow and SOGo | |
### Redirects root to SOGo and /setup to mailcow control panel | |
### Handles all SSL security | |
####### | |
## HTTP catch-all for invalid domain names (e.g. root domain "example.com") | |
server { | |