Skip to content

Commit 95316b3

Browse files
committed
blockchain-env updates
1 parent e2b843f commit 95316b3

10 files changed

Lines changed: 38 additions & 10 deletions

File tree

blockchain-env/bin/activate

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ case "$(uname)" in
4040
CYGWIN*|MSYS*)
4141
# transform D:\path\to\venv to /d/path/to/venv on MSYS
4242
# and to /cygdrive/d/path/to/venv on Cygwin
43-
VIRTUAL_ENV=$(cygpath "/Users/dk/Code/python-blockchain-q4-2025-audit/blockchain-env")
43+
VIRTUAL_ENV=$(cygpath "/Users/dk/Code/python-blockchain-tutorial/blockchain-env")
4444
export VIRTUAL_ENV
4545
;;
4646
*)
4747
# use the path as-is
48-
export VIRTUAL_ENV="/Users/dk/Code/python-blockchain-q4-2025-audit/blockchain-env"
48+
export VIRTUAL_ENV="/Users/dk/Code/python-blockchain-tutorial/blockchain-env"
4949
;;
5050
esac
5151

blockchain-env/bin/activate.csh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PA
99
# Unset irrelevant variables.
1010
deactivate nondestructive
1111

12-
setenv VIRTUAL_ENV "/Users/dk/Code/python-blockchain-q4-2025-audit/blockchain-env"
12+
setenv VIRTUAL_ENV "/Users/dk/Code/python-blockchain-tutorial/blockchain-env"
1313

1414
set _OLD_VIRTUAL_PATH="$PATH"
1515
setenv PATH "$VIRTUAL_ENV/bin:$PATH"

blockchain-env/bin/activate.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ end
3333
# Unset irrelevant variables.
3434
deactivate nondestructive
3535

36-
set -gx VIRTUAL_ENV "/Users/dk/Code/python-blockchain-q4-2025-audit/blockchain-env"
36+
set -gx VIRTUAL_ENV "/Users/dk/Code/python-blockchain-tutorial/blockchain-env"
3737

3838
set -gx _OLD_VIRTUAL_PATH $PATH
3939
set -gx PATH "$VIRTUAL_ENV/bin" $PATH

blockchain-env/bin/flask

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/Users/dk/Code/python-blockchain-q4-2025-audit/blockchain-env/bin/python3.13
1+
#!/Users/dk/Code/python-blockchain-tutorial/blockchain-env/bin/python3.13
22
# -*- coding: utf-8 -*-
33
import re
44
import sys

blockchain-env/bin/pip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/Users/dk/Code/python-blockchain-q4-2025-audit/blockchain-env/bin/python3.13
1+
#!/Users/dk/Code/python-blockchain-tutorial/blockchain-env/bin/python3.13
22
# -*- coding: utf-8 -*-
33
import re
44
import sys

blockchain-env/bin/pip3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/Users/dk/Code/python-blockchain-q4-2025-audit/blockchain-env/bin/python3.13
1+
#!/Users/dk/Code/python-blockchain-tutorial/blockchain-env/bin/python3.13
22
# -*- coding: utf-8 -*-
33
import re
44
import sys

blockchain-env/bin/py.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/Users/dk/Code/python-blockchain-q4-2025-audit/blockchain-env/bin/python3.13
1+
#!/Users/dk/Code/python-blockchain-tutorial/blockchain-env/bin/python3.13
22
# -*- coding: utf-8 -*-
33
import re
44
import sys

blockchain-env/bin/pytest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/Users/dk/Code/python-blockchain-q4-2025-audit/blockchain-env/bin/python3.13
1+
#!/Users/dk/Code/python-blockchain-tutorial/blockchain-env/bin/python3.13
22
# -*- coding: utf-8 -*-
33
import re
44
import sys

blockchain-env/pyvenv.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ home = /opt/homebrew/opt/python@3.13/bin
22
include-system-site-packages = false
33
version = 3.13.0
44
executable = /opt/homebrew/Cellar/python@3.13/3.13.0_1/Frameworks/Python.framework/Versions/3.13/bin/python3.13
5-
command = /opt/homebrew/opt/python@3.13/bin/python3.13 -m venv /Users/dk/Code/python-blockchain-q4-2025-audit/blockchain-env
5+
command = /opt/homebrew/opt/python@3.13/bin/python3.13 -m venv /Users/dk/Code/python-blockchain-tutorial/blockchain-env

nginx.conf

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
server {
2+
listen 80;
3+
server_name localhost;
4+
root /usr/share/nginx/html;
5+
index index.html;
6+
7+
# Handle React Router
8+
location / {
9+
try_files $uri $uri/ /index.html;
10+
}
11+
12+
# Cache static assets
13+
location /static/ {
14+
expires 1y;
15+
add_header Cache-Control "public, immutable";
16+
}
17+
18+
# Security headers
19+
add_header X-Frame-Options "SAMEORIGIN" always;
20+
add_header X-Content-Type-Options "nosniff" always;
21+
add_header X-XSS-Protection "1; mode=block" always;
22+
23+
# Gzip compression
24+
gzip on;
25+
gzip_vary on;
26+
gzip_min_length 1024;
27+
gzip_types text/plain text/css text/xml text/javascript application/javascript application/xml+rss application/json;
28+
}

0 commit comments

Comments
 (0)