test
This commit is contained in:
1 parent
4db0660712
commit
e2a0555271
6 files changed
+87
-157
No files matched your search
@@ -2,6 +2,7 @@
|
||||
<v-card
|
||||
class="mx-auto" height="150px"
|
||||
>
|
||||
<my-helper :pretext="name"/>
|
||||
<!-- <v-card-text class="text-h5 pa-2 pl-5 flex-wrap align-center d-flex justify-space-between">
|
||||
{{name}}
|
||||
|
||||
|
||||
@@ -20,13 +20,27 @@
|
||||
<v-col lg=5 class="bg-red d-flex flex-column">
|
||||
<rating-page :pages_count=pages_count />
|
||||
</v-col>
|
||||
<v-col class="bg-yellow">
|
||||
<!-- :users="val"
|
||||
:ico="icons[Object.keys(activuser()).indexOf(key)]"
|
||||
name="Активность" -->
|
||||
<top-user
|
||||
<v-col class="overflow-auto bg-yellow">
|
||||
<v-card height=550>
|
||||
2
|
||||
<div v-for="x in dataActivusers" :key="x" >
|
||||
{{x}}
|
||||
|
||||
<!-- <top-user
|
||||
:users = x
|
||||
/> -->
|
||||
</div>
|
||||
</v-card>
|
||||
<!-- :users="val"
|
||||
:ico="icons[Object.keys(activuser()).indexOf(key)]"
|
||||
name="Активность" -->
|
||||
<!-- <div v-for="x in dataActivusers" :key="x" >
|
||||
|
||||
|
||||
<top-user
|
||||
:users = x
|
||||
/>
|
||||
</div> -->
|
||||
<!-- {{dataActivusers}} -->
|
||||
</v-col>
|
||||
<v-col class="bg-red">4 </v-col>
|
||||
|
||||
-150
@@ -1,150 +0,0 @@
|
||||
|
||||
|
||||
# Daphne, Django channels backend
|
||||
upstream portal-backend {
|
||||
server 127.0.0.1:9967;
|
||||
}
|
||||
|
||||
#Flask backend for UKD Wizard
|
||||
#
|
||||
#upstream wizard-backend {
|
||||
# server 10.252.44.60:8888;
|
||||
# }
|
||||
|
||||
# PORTAL Test server
|
||||
server {
|
||||
|
||||
listen 9966;
|
||||
server_name 9966;
|
||||
|
||||
|
||||
send_timeout 600;
|
||||
proxy_connect_timeout 600;
|
||||
proxy_send_timeout 600;
|
||||
proxy_read_timeout 600;
|
||||
|
||||
root /var/www/PORTAL_COD2/src/front/dist/;
|
||||
include /etc/nginx/mime.types;
|
||||
access_log /var/log/nginx/portal.access.log;
|
||||
error_log /var/log/nginx/portal.error.log;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
|
||||
# location ~ ^.*/static/(.+\.xlsx)/$ {
|
||||
# alias /var/www/portal/portal/static;
|
||||
# }
|
||||
|
||||
location /static {
|
||||
autoindex on;
|
||||
alias /var/www/PORTAL_COD2/src/portal/static/;
|
||||
}
|
||||
|
||||
location /media {
|
||||
alias /var/www/PORTAL_COD2/src/portal/media;
|
||||
|
||||
}
|
||||
|
||||
location ^~ /api/ {
|
||||
client_max_body_size 100m;
|
||||
include proxy_params;
|
||||
proxy_pass http://127.0.0.1:8085;
|
||||
}
|
||||
# error_page 500 502 503 504 /500.html;
|
||||
# location = /500.html {
|
||||
# root /var/www/proj/;
|
||||
# internal;
|
||||
# }
|
||||
# location /testing {
|
||||
# fastcgi_pass unix:/does/not/exit;
|
||||
#}
|
||||
# VS 20220530 - Test reverse proxy for statistics as susbsite
|
||||
## location /stat {
|
||||
## rewrite ^/stat(.*) /$1 break;
|
||||
# proxy_set_header Host "stat";
|
||||
### proxy_set_header X-Real-IP $remote_addr;
|
||||
### proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
### proxy_set_header X-Forwarded-Proto $scheme;
|
||||
### autoindex on;
|
||||
#
|
||||
### proxy_pass http://127.0.0.1:8080;
|
||||
### }
|
||||
|
||||
|
||||
location /ws/ {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_redirect off;
|
||||
proxy_pass http://portal-backend;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Host $server_name;
|
||||
}
|
||||
|
||||
# Wizard integration
|
||||
# vs@20220831
|
||||
#location /wizard/ {
|
||||
# proxy_http_version 1.1;
|
||||
# proxy_set_header Upgrade $http_upgrade;
|
||||
# proxy_set_header Connection "upgrade";
|
||||
#proxy_redirect off;
|
||||
# proxy_set_header Host $host;
|
||||
#proxy_set_header Host $http_host;
|
||||
# proxy_set_header X-Real-IP $remote_addr;
|
||||
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
# proxy_set_header X-Forwarded-Host $server_name;
|
||||
# proxy_set_header X-Forwarded-Proto $scheme;
|
||||
# proxy_pass http://wizard-backend/;
|
||||
#proxy_pass http://wizard-backend/wizard;
|
||||
# include proxy_params;
|
||||
# }
|
||||
##location /_next/ {
|
||||
## proxy_http_version 1.1;
|
||||
## proxy_set_header Upgrade $http_upgrade;
|
||||
## proxy_set_header Connection "upgrade";
|
||||
## #proxy_redirect off;
|
||||
## proxy_set_header Host $host;
|
||||
#proxy_set_header Host $http_host;
|
||||
## proxy_set_header X-Real-IP $remote_addr;
|
||||
## proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
## proxy_set_header X-Forwarded-Host $server_name;
|
||||
## proxy_set_header X-Forwarded-Proto $scheme;
|
||||
## proxy_pass http://wizard-backend/;
|
||||
## #proxy_pass http://wizard-backend/wizard;
|
||||
# include proxy_params;
|
||||
## }
|
||||
|
||||
# Test redirection - all works fine.
|
||||
# http://ukt/node-red/ -> http://10.252.44.35:1880/
|
||||
# vs@20220831
|
||||
## location /node-red/ {
|
||||
## proxy_http_version 1.1;
|
||||
## proxy_set_header Upgrade $http_upgrade;
|
||||
## proxy_set_header Connection "upgrade";
|
||||
## proxy_set_header Host 10.252.44.35;
|
||||
## proxy_set_header X-Real-IP $remote_addr;
|
||||
## proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
## proxy_set_header X-Forwarded-Proto $scheme;
|
||||
## proxy_pass http://10.252.44.35:1880/;
|
||||
## }
|
||||
# Does not work
|
||||
##location ^~ /wiki/ {
|
||||
## proxy_http_version 1.1;
|
||||
## proxy_set_header Upgrade $http_upgrade;
|
||||
## proxy_set_header Connection "upgrade";
|
||||
## proxy_redirect off;
|
||||
## #proxy_set_header Host $host;
|
||||
## #proxy_set_header Host $http_host;
|
||||
## proxy_set_header Host wiki.cod2.regions.tax.nalog.ru;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -7,7 +7,7 @@ After=network.target
|
||||
[Service]
|
||||
User=root
|
||||
#WorkingDirectory=/var/www/proj/DQM/dqmback
|
||||
WorkingDirectory=/var/www/PORTAL_COD2/src/
|
||||
WorkingDirectory=/var/www/PORTAL_COD2/src
|
||||
# --timeout NNN - set timeout for gunicorn to NNN sec, default - 30sec
|
||||
# --access-logfile FILENAME - log all requests to file FILENAMEA
|
||||
# --error-logfile FILENAME - set error log file to FILENAME
|
||||
@@ -7,7 +7,7 @@ Type=simple
|
||||
User=root
|
||||
#Group = nginx
|
||||
WorkingDirectory=/var/www/PORTAL_COD2/src
|
||||
ExecStart=/var/www/PORTAL_COD2/env/bin/python /var/www/PORTAL_COD2/env/bin/daphne -p 9967 portal.asgi:application
|
||||
ExecStart=/var/www/PORTAL_COD2/env/bin/python /var/www/PORTAL_COD2/env/bin/daphne -p 9966 portal.asgi:application
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
@@ -0,0 +1,65 @@
|
||||
|
||||
|
||||
# Daphne, Django channels backend
|
||||
upstream portal-backend {
|
||||
server 127.0.0.1:9966;
|
||||
}
|
||||
|
||||
|
||||
# PORTAL Test server
|
||||
server {
|
||||
|
||||
listen 80;
|
||||
|
||||
server_name portal-t portal-t.cod2.regions.tax.nalog.ru;
|
||||
|
||||
send_timeout 600;
|
||||
proxy_connect_timeout 600;
|
||||
proxy_send_timeout 600;
|
||||
proxy_read_timeout 600;
|
||||
|
||||
root /var/www/PORTAL_COD2/src/front/dist/;
|
||||
include /etc/nginx/mime.types;
|
||||
access_log /var/log/nginx/portal.access.log;
|
||||
error_log /var/log/nginx/portal.error.log;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
|
||||
|
||||
|
||||
location /static {
|
||||
autoindex on;
|
||||
alias /var/www/PORTAL_COD2/src/static/;
|
||||
}
|
||||
|
||||
location /media {
|
||||
alias /var/www/PORTAL_COD2/src/media;
|
||||
|
||||
}
|
||||
|
||||
location ^~ /api/ {
|
||||
client_max_body_size 100m;
|
||||
include proxy_params;
|
||||
proxy_pass http://portal-backend;
|
||||
}
|
||||
|
||||
location ^~ /admin {
|
||||
include proxy_params;
|
||||
proxy_pass http://portal-backend;
|
||||
}
|
||||
|
||||
|
||||
location /ws/ {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_redirect off;
|
||||
proxy_pass http://portal-backend;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Host $server_name;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user