Skip to content

Instantly share code, notes, and snippets.

@trinvh
Last active June 14, 2018 06:42
Show Gist options
  • Save trinvh/91a31dffaedd3caf9470ee645a35ef3e to your computer and use it in GitHub Desktop.
Save trinvh/91a31dffaedd3caf9470ee645a35ef3e to your computer and use it in GitHub Desktop.
dev-mixcord-default.conf
server {
listen 80 default_server;
listen [::]:80 default_server;
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
root /var/www/html;
index index.ssp index.html index.htm index.php;
server_name _;
location / {
# try_files $uri $uri/ =404;
# try_files /0740c5b6f997d6604732f6d08130d259.htm @router;
proxy_pass https://staging-api.mixcord.co;
}
location ~ ^/(configs|healthchecks|token|hashtags\/trending|posts\/(featured|curate)|posts\/(.+?)\/comment$|admin|curation\/(profiles|rau|videos)|test) {
if ( $request_method !~ ^(GET|POST|HEAD)$ ) {
proxy_pass https://staging-api.mixcord.co;
}
try_files $uri $uri/ /index.ssp?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/lib/php7.0-fpm/www.sock;
}
location ~ \.ssp {
try_files /565495a674136d3a33cd2ae29f1c8a12.htm @ssp;
}
location @ssp {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/lib/php7.0-fpm/www.sock;
fastcgi_index /usr/local/swiftengine/client/client.php;
fastcgi_param SCRIPT_FILENAME /usr/local/swiftengine/client/client.php;
fastcgi_buffer_size 128k;
fastcgi_buffers 256 4k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_read_timeout 300;
fastcgi_param HTTP_PROXY "";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment