This file contains hidden or 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
const Redis = require("ioredis"); | |
new Redis({ | |
port: process.env.REDIS_PORT, | |
host: prcess.env.REDIS_HOST, | |
password: process.env.REDIS_PASSWORD, | |
}); |
This file contains hidden or 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
gzip on; | |
gzip_disable "msie6"; | |
gzip_vary on; | |
gzip_proxied any; | |
gzip_comp_level 6; | |
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml; | |
location / { | |
index index.html index.htm; | |
} |
This file contains hidden or 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
PROJECT_NAME = env('PROJECT_NAME') or 'my-default-value' |
This file contains hidden or 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
session.save_path = "/tmp" |
This file contains hidden or 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
location / { | |
try_files $uri $uri/index.html =404; | |
error_page 404 /404.html; | |
} |
This file contains hidden or 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
"scripts": { | |
"dev:build-server": "NODE_ENV=development webpack --config webpack.server.js --mode=development -w", | |
"dev:start": "nodemon ./server-build/index.js", | |
"start": "node ./server-build/index.js", | |
"start1": "react-scripts start", | |
"build": "react-scripts build && npm run dev:build-server", | |
"test": "react-scripts test", | |
"eject": "react-scripts eject" | |
}, |
This file contains hidden or 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
'stream' => [ | |
'ssl' => [ | |
'verify_peer' => false, | |
'verify_peer_name' => false, | |
'allow_self_signed' => true, | |
], | |
], |
This file contains hidden or 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
dd(env('MAIL_MAILER'), env('MAIL_HOST'), env('MAIL_PORT'), env('MAIL_ENCRYPTION')); |
This file contains hidden or 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
location ^~ /.well-known/ { | |
root /usr/share/nginx/html; | |
} | |
location / { | |
index index.html index.htm; | |
} |
This file contains hidden or 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
location /static { | |
alias /usr/src/app/staticfiles; | |
} | |
location / { | |
try_files $uri @django_app; | |
client_max_body_size 10m; | |
} |