Compare commits

..

No commits in common. "5be5ee5e40b2dfb4fc141618b0b29a9eaa7f9870" and "baa6937bef8fcaa1ddfca172534804abba036465" have entirely different histories.

3 changed files with 4 additions and 19 deletions

View File

@ -4,8 +4,8 @@ let DEBUG = false;
window.DEBUG = DEBUG;
let SERVER_HOST;
if (DEBUG) SERVER_HOST = 'http://localhost:50009';
else SERVER_HOST = 'https://a2s.su';
if (DEBUG) SERVER_HOST = 'localhost';
else SERVER_HOST = 'a2s.su';
window.SERVER_HOST = SERVER_HOST;
/* main */
@ -72,7 +72,7 @@ function get_from_api(callback, api_method = '', params = {}) {
if (api_method == '') {
console.log('wrong method');
} else {
let url = `${SERVER_HOST}/api/v1.0/${api_method}`;
let url = `http://${SERVER_HOST}:50009/api/v1.0/${api_method}`;
let opts = {
method: 'get',
headers: {

View File

@ -16,7 +16,7 @@ export function update_rev2(data) {
// Обновление HP
const content_element = document.getElementById('rev2_emenies');
data.enemies.forEach((emeny) => {
let enemy_data = emeny.split(' ');
enemy_data = emeny.split(' ');
// Элемент с именем монстра
const enemy_name = document.createElement('p');

View File

@ -1,15 +0,0 @@
server {
listen 80;
listen 443 ssl;
server_name a2s.su;
ssl_certificate fullchain.pem;
ssl_certificate_key privkey.pem;
root /home/alex/Sites/a2s.su/www;
location /api/ {
proxy_pass http://127.0.0.1:50009;
}
}