Skip to content

Commit

Permalink
chore: launch vue.js app on / (instead of /app)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Oct 1, 2024
1 parent 1e26642 commit de033ca
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 649 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ services:
volumes:
# Mount the nginx configuration file
- ./nginx.conf:/etc/nginx/nginx.conf
# Mount the static files (for index & vue.js app)
# Mount the static files (robots.txt and vue.js app)
- ./www:/var/www
# Mount the images
- images:/var/img
Expand Down
14 changes: 1 addition & 13 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ http {
listen [::]:80 default_server;
root /var/www;
index index.html;
try_files $uri $uri/ /index.html;

location /api/ {
proxy_pass http://api:8000$request_uri;
Expand Down Expand Up @@ -70,19 +71,6 @@ http {
expires max;
}

# Make vue.js app available under /app
location /app/ {
alias /var/www/app/;
try_files $uri $uri/ /app/index.html;

location ~* \.(woff|woff2|otf|jpg|jpeg|png|webp|css|js|ttf|svg|ico)$ {
add_header Cache-Control public;
add_header Pragma public;
add_header Vary Accept-Encoding;
expires max;
}
}

location /img {
alias /var/img;

Expand Down
175 changes: 0 additions & 175 deletions www/es/index.html

This file was deleted.

Loading

0 comments on commit de033ca

Please sign in to comment.