Skip to content

Instantly share code, notes, and snippets.

View astranavt's full-sized avatar
🌴
On vacation

Anton astranavt

🌴
On vacation
View GitHub Profile
@astranavt
astranavt / nginx.conf
Last active February 22, 2023 03:11 — forked from roman01la/nginx.conf
Node.js Express Nginx
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://127.0.0.1:3000;
}
location ~ ^/(images/|scripts/|styles/|robots.txt|humans.txt|favicon.ico) {
root /your/app/public/folder;
@astranavt
astranavt / cors-nginx.conf
Created May 18, 2019 06:41 — forked from michiel/cors-nginx.conf
Wide-open CORS config for nginx
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
#
@astranavt
astranavt / cloudSettings
Last active May 11, 2018 16:56
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-05-11T16:55:52.894Z","extensionVersion":"v2.9.2"}