Comments (2)
@varghasabee FYI this new version is more setup to deploy on two different instances/lambdas, this way we keep the api traffic separate and scalability is a bit more configurable, LMK what you think
from laranuxt.
@varghasabee the way I have it setup is nuxt.js is exposed to port 80 which then routes /api/
from laravel locally which is running on port 8000, laravel isn't ever exposed itself.
On staging when i want debugbar/etc I'll open up port 8000 as well.
user nginx;
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_disable "msie6";
server {
listen 81;
return 301 https://$host$request_uri;
}
server {
listen 8000;
index index.php;
server_name localhost;
client_max_body_size 1000m;
client_body_timeout 180s;
root /home/ec2-user/laranuxt/public/;
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php;
}
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php-fpm/www.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
}
from laranuxt.
Related Issues (20)
- Login with E-Mail doesnt work HOT 9
- form helper HOT 1
- php artisan serve does not work HOT 2
- Every Route returns 302 HOT 1
- redirect to home when reload the page
- guest page not working HOT 1
- i18n not working HOT 1
- Error target class [web] doesn not exist HOT 2
- css does not load if using production build HOT 3
- How to change nuxt address?
- updates to pull from qv
- Error when running yarn dev HOT 5
- How to login with email and password ? HOT 2
- nuxt v3 - auth module/plugin middleware HOT 4
- Contribution guide HOT 2
- Static Analyser HOT 4
- Vuetify lazy image loading HOT 2
- docker support HOT 4
- Permission denied when trying to clone git repo HOT 4
- icon and html validation modules HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laranuxt.