-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* local files, nginx * api test code * vt/maxmind error, update notebook * python3.12 - go1.22 - ws updates * #1030 update - #947 method 1 * update libs * upgrade tree view * fix download dump error * keep pip for volatility for shared install path * improve plugin install, regipy plugins * fix admin upload plugins * #1068 * update changelog ---------
- Loading branch information
Showing
61 changed files
with
10,451 additions
and
1,974 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VERSION=latest |
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM alpine:latest as alpine | ||
ARG DOMAIN_NAME=orochi.dev | ||
ARG DAYS_VALID=365 | ||
|
||
RUN apk add --no-cache openssl | ||
RUN echo "Creating self-signed certificate valid for ${DAYS_VALID} days for domain ${DOMAIN_NAME}" && \ | ||
openssl \ | ||
req -x509 \ | ||
-nodes \ | ||
-subj "/CN=${DOMAIN_NAME}" \ | ||
-addext "subjectAltName=DNS:${DOMAIN_NAME}" \ | ||
-days ${DAYS_VALID} \ | ||
-newkey rsa:2048 -keyout /tmp/self-signed.key \ | ||
-out /tmp/self-signed.crt | ||
|
||
# Prepare an NGINX-based image with the certificate created above. | ||
FROM nginx:latest as nginx | ||
COPY --from=alpine /tmp/self-signed.key /etc/ssl/private | ||
COPY --from=alpine /tmp/self-signed.crt /etc/ssl/certs |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
upstream django_wsgi { | ||
server django_wsgi:8000; | ||
} | ||
|
||
upstream django_asgi { | ||
server django_asgi:9000; | ||
} | ||
|
||
map $http_upgrade $connection_upgrade { | ||
default upgrade; | ||
'' close; | ||
} | ||
|
||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name _; | ||
return 301 https://$host$request_uri; | ||
} | ||
|
||
server { | ||
listen 443 ssl; | ||
listen [::]:443 ssl; | ||
|
||
proxy_connect_timeout 50000; | ||
proxy_read_timeout 50000; | ||
proxy_send_timeout 50000; | ||
|
||
server_name orochi.dev; | ||
|
||
location = /favicon.ico { access_log off; log_not_found off; } | ||
|
||
ssl_certificate /etc/ssl/certs/self-signed.crt; | ||
ssl_certificate_key /etc/ssl/private/self-signed.key; | ||
|
||
location / { | ||
proxy_pass http://django_wsgi; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header Host $host; | ||
proxy_redirect off; | ||
|
||
client_max_body_size 1000M; | ||
} | ||
|
||
location /ws/notify/ { | ||
proxy_pass http://django_asgi; | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection $connection_upgrade; | ||
|
||
proxy_redirect off; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Host $server_name; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import orochi.website.routing | ||
from django.core.asgi import get_asgi_application | ||
from channels.auth import AuthMiddlewareStack | ||
from channels.routing import ProtocolTypeRouter, URLRouter | ||
from channels.security.websocket import AllowedHostsOriginValidator | ||
from django.core.asgi import get_asgi_application | ||
|
||
import orochi.website.routing | ||
|
||
application = ProtocolTypeRouter( | ||
{ | ||
"http": get_asgi_application(), | ||
"websocket": AuthMiddlewareStack( | ||
URLRouter(orochi.website.routing.websocket_urlpatterns) | ||
"websocket": AllowedHostsOriginValidator( | ||
AuthMiddlewareStack(URLRouter(orochi.website.routing.websocket_urlpatterns)) | ||
), | ||
} | ||
) |
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
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
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
Oops, something went wrong.