diff --git a/README.md b/README.md index 2da0946..f89fbd3 100644 --- a/README.md +++ b/README.md @@ -622,3 +622,40 @@ server { # Make site accessible from http://localhost/ } + + + + + +default - dev server + +upstream ribica_app { + server unix:///var/www/ribica/ribica_app.sock; +} + +server { + listen 80 default_server; + listen [::]:80 default_server; + + location / { + root /var/www/ribica/front-ui/build; + try_files $uri $uri/ /index.html; + } + + location /backoffice { + auth_basic "Restricted"; + auth_basic_user_file /etc/nginx/.htpasswd; + proxy_pass http://localhost:3000; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + + location /api { + proxy_pass http://ribica_app; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + +} +~ +~ \ No newline at end of file diff --git a/front-ui/app/css/toast.css b/front-ui/app/css/toast.css index 88ce5ae..43eb935 100644 --- a/front-ui/app/css/toast.css +++ b/front-ui/app/css/toast.css @@ -3,7 +3,7 @@ display: -webkit-flex; display: -ms-flexbox; display: flex; - position: absolute; + position: fixed; visibility: hidden; border-radius: 2px; top: 1em;