Category : configuration

Does docker-compose support defining volumes in a file and using that file the same way as it can use a .env file for environmental variables and load them with CLI switch –env-file? I could not find in the docker-compose documentation any switches like: –volume-file nor –mount-file nor any information about supporting loading volumes’ paths from ..

Read more

I created a symfony environment with docker. I then included this file in my web project (skeleton website). But when I try to access my base.html.twig page located in a main folder from the controller, I get this error: Unable to find template "main/base.html.twig" (looked into: /var/www/templates, /var/www/vendor/symfony/twig-bridge/Resources/views/Form). Do you know how to solve the ..

Read more

I would like to be able to send mails from gitlab. Here, the mail service that we use do not require authentification. So looking at these here: https://docs.gitlab.com/omnibus/settings/smtp.html#smtp-without-ssl We understood that the gitlab.rb smtp section should be as this example Since it was stilll not working, we looked deeper and tried configurations as proposed there: ..

Read more

I am trying to add worker_processes into my nginx.conf file on my docker-environment, but whenever I try, it fails to restart or load. I believe I’m missing some key concept here- anyway: This is my nginx.conf file (everything works here): server { listen 80; index index.php index.html; error_log /var/log/nginx/error.log; access_log /var/log/nginx/access.log; root /var/www/src; location ~ ..

Read more

I am trying to set up MySQL group replication. Only problem is, that when I try to start replication group, It starts with super_read_only. Here the configurations in my.cnf file [mysqld] max_binlog_size = 4096 default_authentication_plugin = mysql_native_password log_bin = mysql-bin-1.log enforce_gtid_consistency = ON gtid_mode = ON log_slave_updates = ON binlog_checksum = NONE plugin-load-add = group_replication.so ..

Read more

I am working on a react web application, which may require multi language support. I am using i18n-next which internally loads the required configuration file from specific directory based on the language selected by user. The word or scentences that needs to be translated may increase based the screens that user going to add and ..

Read more

I have a NodeJS application to which I need to provide various flags to customise the environment. I’m already handling environment files with dotenv and I’m preloading it to the app from the CLI as well: "scripts": { "hello": "DOTENV_CONFIG_PATH=/my/path/dev.env node –max_semi_space_size 64 –inspect=0.0.0.0 dist/index.js" } My question is: I’m starting to hit a situation ..

Read more

I’m having a very strange problem. I have this configuration class: @Configuration public class KeycloakClientConfig { @Value("${keycloak.auth-server-url}") private String serverUrl; @Value("${keycloak.realm}") private String realm; @Value("${keycloak.admin.clientId}") private String clientId; @Value("${keycloak.admin.clientSecret}") private String clientSecret; @Bean public HermesKeycloak getKeycloakClient(){ return HermesKeycloakBuilder.builder() .serverUrl(serverUrl) .grantType(OAuth2Constants.CLIENT_CREDENTIALS) .realm(realm) .clientId(clientId) .clientSecret(clientSecret) .resteasyClient( new ResteasyClientBuilder() .connectionPoolSize(10) .build() ).build(); } } Some variables are fetched ..

Read more