mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
commit
b5fffc392d
@ -43,7 +43,7 @@ services:
|
|||||||
- community-server
|
- community-server
|
||||||
- login-server
|
- login-server
|
||||||
volumes:
|
volumes:
|
||||||
- ./logs:/var/log/nginx
|
- ./logs/nginx:/var/log/nginx
|
||||||
|
|
||||||
#########################################################
|
#########################################################
|
||||||
## PHPMYADMIN ###########################################
|
## PHPMYADMIN ###########################################
|
||||||
|
|||||||
@ -16,8 +16,6 @@ services:
|
|||||||
target: production
|
target: production
|
||||||
networks:
|
networks:
|
||||||
- external-net
|
- external-net
|
||||||
depends_on:
|
|
||||||
- nginx
|
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
environment:
|
environment:
|
||||||
@ -69,6 +67,7 @@ services:
|
|||||||
- 1201:1201
|
- 1201:1201
|
||||||
volumes:
|
volumes:
|
||||||
- ./configs/login_server:/etc/grd_login
|
- ./configs/login_server:/etc/grd_login
|
||||||
|
- login_build:/code/build_vol
|
||||||
|
|
||||||
#########################################################
|
#########################################################
|
||||||
## NGINX ################################################
|
## NGINX ################################################
|
||||||
@ -135,4 +134,5 @@ networks:
|
|||||||
internal: true
|
internal: true
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
db_vol:
|
db_vol:
|
||||||
|
login_build:
|
||||||
|
|||||||
@ -7,7 +7,7 @@ function resolveSrc(_path) {
|
|||||||
|
|
||||||
let vue_path = process.env.VUE_PATH
|
let vue_path = process.env.VUE_PATH
|
||||||
if (vue_path == undefined) {
|
if (vue_path == undefined) {
|
||||||
vue_path = ''
|
vue_path = '/vue'
|
||||||
}
|
}
|
||||||
|
|
||||||
// vue.config.js
|
// vue.config.js
|
||||||
|
|||||||
@ -64,4 +64,4 @@ RUN chmod +x ./Dockerfiles/build_and_run.sh
|
|||||||
#RUN chmod +x ./start_after_mysql.sh
|
#RUN chmod +x ./start_after_mysql.sh
|
||||||
#ENTRYPOINT ["/usr/bin/Gradido_LoginServer"]
|
#ENTRYPOINT ["/usr/bin/Gradido_LoginServer"]
|
||||||
#CMD gdb -ex=r Gradido_LoginServer
|
#CMD gdb -ex=r Gradido_LoginServer
|
||||||
CMD ./Dockerfiles/build_and_run.sh
|
CMD ./Dockerfiles/build_and_run.sh; ./build_vol/bin/Gradido_LoginServer
|
||||||
|
|||||||
@ -4,6 +4,6 @@ cd build_vol
|
|||||||
|
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug ..
|
cmake -DCMAKE_BUILD_TYPE=Debug ..
|
||||||
make -j$(nproc) Gradido_LoginServer
|
make -j$(nproc) Gradido_LoginServer
|
||||||
echo "building done"
|
#echo "building done"
|
||||||
chmod +x ./bin/Gradido_LoginServer
|
chmod +x ./bin/Gradido_LoginServer
|
||||||
./bin/Gradido_LoginServer
|
#./bin/Gradido_LoginServer
|
||||||
|
|||||||
@ -248,6 +248,7 @@ int Gradido_LoginServer::main(const std::vector<std::string>& args)
|
|||||||
json_srv.start();
|
json_srv.start();
|
||||||
|
|
||||||
printf("[Gradido_LoginServer::main] started in %s\n", usedTime.string().data());
|
printf("[Gradido_LoginServer::main] started in %s\n", usedTime.string().data());
|
||||||
|
std::clog << "[Gradido_LoginServer::main] started in " << usedTime.string().data() << std::endl;
|
||||||
// wait for CTRL-C or kill
|
// wait for CTRL-C or kill
|
||||||
waitForTerminationRequest();
|
waitForTerminationRequest();
|
||||||
|
|
||||||
|
|||||||
@ -14,14 +14,6 @@ server {
|
|||||||
root /var/www/cakephp/webroot;
|
root /var/www/cakephp/webroot;
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
location ~* \.(png|jpg|ico|webp)$ {
|
|
||||||
expires 30d;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~* \.(js|css) {
|
|
||||||
# expires 1d;
|
|
||||||
expires 1d;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
fastcgi_pass community-server:9000;
|
fastcgi_pass community-server:9000;
|
||||||
@ -72,6 +64,29 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /vue {
|
||||||
|
|
||||||
|
location /vue/sockjs-node {
|
||||||
|
rewrite /vue/(.*) /$1;
|
||||||
|
}
|
||||||
|
location ~* \.(png) {
|
||||||
|
expires 1d;
|
||||||
|
rewrite /vue/(.*) /$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection 'upgrade';
|
||||||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
#rewrite /vue/(.*) /$1 break;
|
||||||
|
|
||||||
|
proxy_pass http://frontend:8080;
|
||||||
|
proxy_redirect off;
|
||||||
|
}
|
||||||
|
|
||||||
# access_log /var/log/nginx/access.log main;
|
# access_log /var/log/nginx/access.log main;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user