sentry onpremise how to set domain name? - sentry

We have been using old sentry (like 6.*)
We are trying to use the latest onpremise sentry with docker
We don't care about old data, starting fresh is fine.
When I go to the setting page for client-dsn, it has our server's domain name set.
Where did the docker pick this up? and how can I change it?

As far as I have seen th FQDN is taken automatically by Sentry. When doing the first login you are able to set the Root name and there you can change it.
Edit-21.07.2020: As I currently need to do some digging i came across the function:
sentry config set system.url-prefix
or you can set it inside these files:
/etc/sentry/sentry.conf.py
/etc/sentry/config.yml

The below command is deprecated now,
sentry config set system.url-prefix
The better option to edit vim ~/.sentry/config.yml.
Add the below line at the end of vim ~/.sentry/config.yml & restart the sentry.
system.url-prefix: 'https://sentry.example.com'

Related

Do I need to change the configuration of the admin key after installing APISIX?

After I successfully installed APISIX, I found that the configuration file contains admin key information and all control requests need to contain this credential, do I need to change this configuration? How do I make the change take effect?
for security reasons, we would encourage any users to generate a different API key before using Apache APISIX, please check its documentation[1].
NOTE: API Key is only a string, you can generate a new one in your preferred way. For me, I would use https://www.random.org/strings/.
[1] https://apisix.apache.org/docs/apisix/admin-api/
[2] https://github.com/apache/apisix/blob/master/conf/config.yaml#L46

How to delete a Collection Type?

I created a collection type in the Strapi admin panel and now I want to delete it, but I don't see an option anywhere in the admin panel to do so. I must be missing something obvious, right?
You can do it in Content Type Builder, steps:
Enter Admin panel
Content Type Builder
Click a collection type
Edit (small pen icon next to the name)
Delete
Confirm
Official docs - Deleting content-types
Another way is to use the admin API, make a DELETE call to:
/content-type-builder/content-types/:uid
To use the API you must have permissions enabled for a role under Roles & Permissions
Endpoints docs
At the time of this update Strapi added a caution (Feb 2022):
Deleting a content-type only deletes what was created and available from the Content-type Builder ... All the data ... is however kept in the database.
You need to start the server with npm run develop or yarn run develop
If you started the server with npm run start or yarn run start you will not see these options.

Checking a remote url depending upon config

I am a new NativeScript user and I am trying to understand how to have my app make a GET call to a remote server, depending upon environment. In Java world we pass in an environment variable, but I have not found an example (that I understand) demonstrating how my NativeScript mobile app will know which environment it is running in, and how to get values based upon that.
I am presuming that I will have a config/ with files such as
prod.conf.js and dev.conf.js - and there is where I will put in my urls and other config values.
How do I get my NativeScript (which I will eventually build into iOS) to reach those values to use in an http request upon startup. Any example to direction to documentation would be greatly appreciated.
Answer:
I finally got the problem solved by using Manoj suggestion of nativescript-dev-appconfig. For any newbie looking for help, try this:
{PROJECT_ROOT}/config - create the environment files as {env}.json. These files are just json, with name-value pairs of the values you want. In may case that is
When you do your build: tns build ios --bundle --env.config {dev | test | prod }
This will take the contents of the selected env.config file (ie -env.config dev and copy it as - {PROJECT_ROOT}/app/config.json .
To use it within your code,
import config from "../config.json";
axios.get(config.MY_URL).then(result => {...}
Unfortunately using environment based config files are not officially supported but there is a plugin hook you could try.
We also have webpack based environment variable support, read more about that in the docs.

Setting Projects to Private by Default

I have my SQ server running in Kubernetes (via Tectonic) and all is going well. We need to tighten the security of our SQ installation, so we have LDAP up and working. We are trying to get all of the projects to be Private by default (which we can do Via the GUI for each project).
However, trying to flip the switch in the GUI to make all new projects Private works, until you refresh the page, then it reverts back to Public.
I have been searching for a way to set this up via the sonar.properties file or sonar-project.properties file (first if the preferred). The server.properties file we use is encrypted as a secret (because the LDAP settings exposes a service account password) and I would like to keep settings there.
I have combed through documentation, posts, discussions and all that, but have not been able to find out what the value=key combination is.
Has anyone seen what this is or if we can even accomplish that? Is it a setting stored in the database? I'm kind of at a loss on this one.
Thanks!
In SonarQube 7.x you can find the public/private setting when you browse to Administration - Projects - Management. This only works for new projects. For existing projects you can use the "Edit the permissions" option on the same page and switch between public and private.
You can also use the web_api to achieve the same results. You can find the documentation when you add "/web_api/api/projects" after the sonarqube URL:
Example of the POST request body: project=MyProject&visibility=private

Setting Config Variables Permanently

I was trying to save my configration variables permanently. For example app.debug i want to change dynamically in my control panel and save it permanently.
I tried lot of packages but not supporting laravel 5.2 or i cant:
https://github.com/Phil-F/Setting/
https://github.com/daftspunk/laravel-config-writer
https://github.com/anlutro/laravel-settings
When I try to overwrite, its going to more big problem because some variables need to get in to environment. How can i do this?
Thank you..
Okay,
I coded a new package for Laravel 5.x and i can make permanently config variable with this code below
Permacon::set("config", "locale", "tr");
Permacon Package => https://github.com/furkankadioglu/Permacon

Resources