Last active
August 29, 2015 14:25
-
-
Save mrah/29999916097b99fa3dc7 to your computer and use it in GitHub Desktop.
Nginx Configurations
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
| server { | |
| listen 80; | |
| server_name api.parser.dev; | |
| root "/home/vagrant/Sites/Development/Parser/public"; | |
| index index.html index.htm index.php; | |
| charset utf-8; | |
| location / { | |
| try_files $uri $uri/ /index.php?$query_string; | |
| } | |
| location = /favicon.ico { access_log off; log_not_found off; } | |
| location = /robots.txt { access_log off; log_not_found off; } | |
| access_log off; | |
| error_log /var/log/nginx/api.parser.dev-error.log error; | |
| sendfile off; | |
| client_max_body_size 100m; | |
| location ~ \.php$ { | |
| fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
| fastcgi_pass unix:/var/run/php5-fpm.sock; | |
| fastcgi_index index.php; | |
| include fastcgi_params; | |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
| fastcgi_intercept_errors off; | |
| fastcgi_buffer_size 16k; | |
| fastcgi_buffers 4 16k; | |
| } | |
| location ~ /\.ht { | |
| deny all; | |
| } | |
| } | |
| server { | |
| listen 443; | |
| server_name api.parser.dev; | |
| root "/home/vagrant/Sites/Development/Parser/public"; | |
| index index.html index.htm index.php; | |
| charset utf-8; | |
| location / { | |
| try_files $uri $uri/ /index.php?$query_string; | |
| } | |
| location = /favicon.ico { access_log off; log_not_found off; } | |
| location = /robots.txt { access_log off; log_not_found off; } | |
| access_log off; | |
| error_log /var/log/nginx/api.parser.dev-ssl-error.log error; | |
| sendfile off; | |
| client_max_body_size 100m; | |
| location ~ \.php$ { | |
| fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
| fastcgi_pass unix:/var/run/php5-fpm.sock; | |
| fastcgi_index index.php; | |
| include fastcgi_params; | |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
| fastcgi_intercept_errors off; | |
| fastcgi_buffer_size 16k; | |
| fastcgi_buffers 4 16k; | |
| } | |
| location ~ /\.ht { | |
| deny all; | |
| } | |
| ssl on; | |
| ssl_certificate /etc/nginx/ssl/api.parser.dev.crt; | |
| ssl_certificate_key /etc/nginx/ssl/api.parser.dev.key; | |
| } |
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
| server { | |
| listen 80; | |
| server_name app.parser.dev; | |
| root "/home/vagrant/Sites/Development/Parser/public/Parser"; | |
| index index.html index.htm index.php; | |
| charset utf-8; | |
| location / { | |
| try_files $uri $uri/ /index.html; | |
| } | |
| location = /favicon.ico { access_log off; log_not_found off; } | |
| location = /robots.txt { access_log off; log_not_found off; } | |
| access_log off; | |
| error_log /var/log/nginx/app.parser.dev-error.log error; | |
| sendfile off; | |
| client_max_body_size 100m; | |
| location ~ \.php$ { | |
| fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
| fastcgi_pass unix:/var/run/php5-fpm.sock; | |
| fastcgi_index index.php; | |
| include fastcgi_params; | |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
| fastcgi_intercept_errors off; | |
| fastcgi_buffer_size 16k; | |
| fastcgi_buffers 4 16k; | |
| } | |
| location ~ /\.ht { | |
| deny all; | |
| } | |
| } | |
| server { | |
| listen 443; | |
| server_name app.parser.dev; | |
| root "/home/vagrant/Sites/Development/Parser/public/Parser"; | |
| index index.html index.htm index.php; | |
| charset utf-8; | |
| location / { | |
| try_files $uri $uri/ /index.php?$query_string; | |
| } | |
| location = /favicon.ico { access_log off; log_not_found off; } | |
| location = /robots.txt { access_log off; log_not_found off; } | |
| access_log off; | |
| error_log /var/log/nginx/app.parser.dev-ssl-error.log error; | |
| sendfile off; | |
| client_max_body_size 100m; | |
| location ~ \.php$ { | |
| fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
| fastcgi_pass unix:/var/run/php5-fpm.sock; | |
| fastcgi_index index.php; | |
| include fastcgi_params; | |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
| fastcgi_intercept_errors off; | |
| fastcgi_buffer_size 16k; | |
| fastcgi_buffers 4 16k; | |
| } | |
| location ~ /\.ht { | |
| deny all; | |
| } | |
| ssl on; | |
| ssl_certificate /etc/nginx/ssl/app.parser.dev.crt; | |
| ssl_certificate_key /etc/nginx/ssl/app.parser.dev.key; | |
| } |
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
| server { | |
| listen 80; | |
| server_name parser.dev; | |
| root "/home/vagrant/Sites/Development/Parser/public"; | |
| index index.html index.htm index.php; | |
| charset utf-8; | |
| location / { | |
| try_files $uri $uri/ /index.php?$query_string; | |
| } | |
| location = /favicon.ico { access_log off; log_not_found off; } | |
| location = /robots.txt { access_log off; log_not_found off; } | |
| access_log off; | |
| error_log /var/log/nginx/parser.dev-error.log error; | |
| sendfile off; | |
| client_max_body_size 100m; | |
| location ~ \.php$ { | |
| fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
| fastcgi_pass unix:/var/run/php5-fpm.sock; | |
| fastcgi_index index.php; | |
| include fastcgi_params; | |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
| fastcgi_intercept_errors off; | |
| fastcgi_buffer_size 16k; | |
| fastcgi_buffers 4 16k; | |
| } | |
| location ~* \.(eot|ttf|woff)$ { | |
| add_header Access-Control-Allow-Origin '*'; | |
| } | |
| location ~ /\.ht { | |
| deny all; | |
| } | |
| } | |
| server { | |
| listen 443; | |
| server_name parser.dev; | |
| root "/home/vagrant/Sites/Development/Parser/public"; | |
| index index.html index.htm index.php; | |
| charset utf-8; | |
| location / { | |
| try_files $uri $uri/ /index.php?$query_string; | |
| } | |
| location = /favicon.ico { access_log off; log_not_found off; } | |
| location = /robots.txt { access_log off; log_not_found off; } | |
| access_log off; | |
| error_log /var/log/nginx/parser.dev-ssl-error.log error; | |
| sendfile off; | |
| client_max_body_size 100m; | |
| location ~ \.php$ { | |
| fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
| fastcgi_pass unix:/var/run/php5-fpm.sock; | |
| fastcgi_index index.php; | |
| include fastcgi_params; | |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
| fastcgi_intercept_errors off; | |
| fastcgi_buffer_size 16k; | |
| fastcgi_buffers 4 16k; | |
| } | |
| location ~ /\.ht { | |
| deny all; | |
| } | |
| ssl on; | |
| ssl_certificate /etc/nginx/ssl/parser.dev.crt; | |
| ssl_certificate_key /etc/nginx/ssl/parser.dev.key; | |
| } |
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
| [program:laravel-worker] | |
| process_name=%(program_name)s_%(process_num)02d | |
| command=php /home/vagrant/Sites/Development/Parser/artisan queue:work database --sleep=3 --tries=3 --daemon | |
| autostart=true | |
| autorestart=true | |
| user=vagrant | |
| numprocs=8 | |
| redirect_stderr=true | |
| stdout_logfile=/home/vagrant/Sites/Development/Parser/worker.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment