server {
listen 81;
listen [::]:81;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name 194.194.194.194;
location / {
proxy_pass http://localhost:3000;
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;
}
}
<Avatar v-bind:avatar ="UserAvatar " />
data: () => {
return {
UserAvatar: false,
}
},
async mounted() {
axios.$post('get-user-photo.php').then(response => {
this.UserAvatar = response.data;
});
},
methods: {
UploadPhoto(){
axios.post('upload-user-photo.php', {
UserPhoto: 'user-photo'
}).then(response => {
this.UserAvatar = response.data;
});
}
}
res.json().then(data => {
this.info = data;
});
server_name - скрыл в примере выше, в реальном конфиге нормальный.
не помогло( возможно криво сделал...