front service SPA
Run everything in docker
https://files.slack.com/files-pri/T03860VUN-FLPN3K63C/image.png
nginx config
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /var/www/rentkelowna_docker/rent/public;
index index.html index.php;
client_max_body_size 20m;
location / {
# try_files $uri $uri/ /index.html;
# proxy_pass http://127.0.0.1:9090;
# try_files $uri $uri/ /index.html;
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9010;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/public$fastcgi_script_name;
try_files $uri =404;
}
location ~^ /dashboard/ {
proxy_pass http://localhost:9090;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
api works fine. but vuejs doesn't work
Hey. 🖖 It is a vue chat, not a backend one. Maybe some backend chat will be more appropriate for your question. I'm sure this way you'll find answer faster.
Обсуждают сегодня