fix invalid port

This commit is contained in:
b1ek 2023-05-17 07:02:20 +10:00
parent 0ffd513a2f
commit 83d9019385
Signed by: blek
GPG Key ID: 14546221E3595D0C
4 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ APP_DEBUG=false
APP_PORT=80
DB_HOST=db
DB_PORT=3306a
DB_PORT=3306
DB_PASSWORD=
DB_DATABASE=pairent

View File

@ -26,7 +26,7 @@ http {
server {
listen 80;
location ~ ^/(api|admin|index.html|/)$ {
location ~ ^/(api|admin)/ {
proxy_pass http://back;
}

View File

@ -7,8 +7,8 @@ const api_path = path => API_ROOT + path;
* Api root path
* @type {string}
*/
const API_ROOT = window.location.protocol + '//127.0.0.1:8000';
// ДЛЯ ПРОДА ПОСТАВИТЬ ЭТО: '//pairent.vvsu.ru'
const API_ROOT = window.location.protocol + '//' + window.location.host;
// ДЛЯ ПРОДА ПОСТАВИТЬ ЭТО: '//' + window.location.host
/** OpenID Connect Client Config
* @type {import('oidc-client-ts').OidcClientSettings}

View File

@ -9,7 +9,7 @@
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<script type="module" crossorigin src="/assets/index-dc786e36.js"></script>
<script type="module" crossorigin src="/assets/index-22e3f5a9.js"></script>
<link rel="stylesheet" href="/assets/index-b130f2c5.css">
</head>
<body>