Skip to content

Instantly share code, notes, and snippets.

@felipemarques
Last active September 12, 2016 13:09
Show Gist options
  • Save felipemarques/637df32cd5e308b7c0df59514ec8c96c to your computer and use it in GitHub Desktop.
Save felipemarques/637df32cd5e308b7c0df59514ec8c96c to your computer and use it in GitHub Desktop.
upstream dev-maker-api {
server 127.0.0.1:9000;
}
server {
listen 443;
client_max_body_size 100m;
server_name dev-maker-api.joox.io;
ssl on;
ssl_certificate /etc/nginx/ssl/self-ssl.crt;
ssl_certificate_key /etc/nginx/ssl/self-ssl.key;
#ssl_certificate /etc/nginx/ssl/app-shopify.joox.io.crt;
#ssl_certificate_key /etc/nginx/ssl/app-shopify.joox.io.key;
#ssl_certificate /etc/nginx/ssl/joox.io.prod.crt;
#ssl_certificate_key /etc/nginx/ssl/joox.io.prod.key;
root /var/www/joox.io/api_maker/public/;
access_log /var/log/nginx/dev-maker-api.joox.io.ssl.access.log;
error_log /var/log/nginx/dev-maker.api.joox.io.ssl.error.log;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
index index.php index.htm index.html;
location ~ \.php$ {
fastcgi_param APPLICATION_ENV development;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_pass dev-maker-api;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
}
sendfile off;
}
server {
listen 80;
server_name dev-maker-api.joox.io;
client_max_body_size 100m;
index index.php;
access_log /var/log/nginx/dev-maker-api.joox.io.access.log;
error_log /var/log/nginx/dev-maker.api.joox.io.error.log;
root /var/www/joox.io/api_maker/public/;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
index index.html index.htm index.php;
fastcgi_param APPLICATION_ENV development;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_pass dev-maker-api;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
}
sendfile off;
}
-----BEGIN CERTIFICATE-----
MIIDgDCCAmgCCQDSMqpF7KXAdjANB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lf/cieWHZ99EfUES84aqA2OaEB21MbbXz7spSfY9wk+GmleCjGGVlrwbfPvgKyb
AQxOKS7RhaHxyCMMXty/K261qCo7lBsXZKOu7iSSX5RwIwNQG6zk6QPM2Jrh0YId
4lE/24l4pc1BUKWNP/GVJcqYqd7Zqqy/LJISfL8CgYBEtRlM5fMtHAGU48LWYjQ1
62mda47xz4Alybsusmlp7u7vPDRJx3ORnK7hag/vLS6pMZooXCf4BxJect4x6t58
iqLy8WBylvd9/NX4F+ehkownJqYF1gi0TYpTC5CO5MId/gs13Q/lxImSdTyhQo0T
rfzIV6SCcF1GGe6uFpOWwQKBgAjTtYffDDMohMw++IfkP0GtcI9OxnNhtrjoSouw
cVApuYYVvZCsnyfBcCBU5J9JKI5T/pzjWMn73JkdzVeEfvvc/n4Srp7o4rghByqY
OQwHOGdpE8+KUhpfTJZsDlEGupSpQPk+omIgUmpLYRCfQo7LGnGJvgSqUq/TEJgM
e27XAoGAMjSr0dPpcBbsKGS/EApqj4SR1A/Ur5/lFrkpNSHvnI0RTnMzlPe8Y91Q
v3ra4s/qyDg5+sUDt5pRWdKp/4/3/mDtWgRku16idJaJ5pxQw1Cm3B6/WFG7kJ8n
rAKSLHvjVjefUd1v/MfK19n+osnPdy1N91RbQts/kkN7DpeP8O4=
-----END RSA PRIVATE KEY-----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment