Commit Graph

146 Commits

Author SHA1 Message Date
Simon Larsen
e60b06d014
refactor: Initialize telemetry with correct service name in Telemetry and InfrastructureStatus
This refactor updates the Telemetry and InfrastructureStatus components to initialize telemetry with the correct service name. By using the APP_NAME constant defined in the Index.ts file, the service name is now dynamically set, ensuring accurate telemetry tracking.

Files modified:
- App/Index.ts
- CommonServer/Utils/Telemetry.ts
2024-08-02 16:47:55 -06:00
Simon Larsen
6754167e57
Update Docker Compose files to use OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT consistently across all services. This change ensures that the OpenTelemetry exporter endpoint is set uniformly for all services, improving consistency and reducing potential configuration errors.
Files modified:
- docker-compose.base.yml
- config.example.env
2024-08-01 19:40:56 -06:00
Simon Larsen
3bf74edae4
feat: Update OneUptime chart to use probes instead of probe for probe configuration 2024-08-01 19:37:46 -06:00
Simon Larsen
0f0f2c1b81
feat: Update react-syntax-highlighter to latest version and use a11yDark style
This commit updates the react-syntax-highlighter package to the latest version and switches to the a11yDark style for syntax highlighting in the MarkdownViewer component. This update ensures compatibility with the latest features and improvements of react-syntax-highlighter and enhances the accessibility of the code snippets in the MarkdownViewer.
2024-07-14 15:40:10 -06:00
Simon Larsen
c5062b5bc5
feat: Add @types/react-syntax-highlighter dependency
This commit adds the "@types/react-syntax-highlighter" dependency to the package.json file in the CommonUI directory. This is necessary to provide TypeScript type definitions for the "react-syntax-highlighter" library, ensuring proper type checking and improved development experience.
2024-07-14 14:44:06 -06:00
Simon Larsen
da67dc6930
feat: Add network_mode: host to docker-compose.base.yml
This commit adds the `network_mode: host` configuration to the `docker-compose.base.yml` file. This configuration allows the container to share the host network stack, enabling direct access to the host's network interfaces. This change is made to improve network performance and connectivity for the application.
2024-07-14 13:58:48 -06:00
Simon Larsen
7c796e110b feat: Add environment variables for Hugging Face token and model name
This commit adds the necessary environment variables for the Hugging Face token and model name in the `docker-compose.yml` file. The `HF_TOKEN` environment variable is used to store the Hugging Face API token, which can be obtained by signing up on Hugging Face and creating a new API token. The `HF_MODEL_NAME` environment variable is optional and allows specifying the model name from Hugging Face. If not set, the default model `meta-llama/Meta-Llama-3-8B-Instruct` will be used.
2024-07-12 20:37:03 +00:00
Simon Larsen
0a02aba790 feat: Add lazy loading for images in PullRequestView 2024-07-12 20:17:57 +00:00
Simon Larsen
5d1ad931fc
chore: Remove unused Copilot configuration variables
This commit removes the unused Copilot configuration variables from the `config.example.env` file. The `COPILOT_OPENAI_API_KEY` and `COPILOT_OPENAI_MODEL` variables are no longer needed and have been removed. This cleanup improves the clarity and maintainability of the codebase.
2024-07-12 19:36:33 +01:00
Simon Larsen
5e486e4ce6
chore: Update LlmType enum and related code 2024-07-10 21:33:38 +01:00
Simon Larsen
b5195c27c0
chore: Add OpenAI configuration to Copilot
- Update config.example.env to include OpenAI API key and model.
- Update docker-compose.base.yml to include OpenAI environment variables.
- Update Copilot configuration files to handle OpenAI LLM responses.
2024-07-10 20:59:46 +01:00
Simon Larsen
d8c8a76c1d
chore: Update Copilot configuration files
- Update Copilot Dockerfile.tpl to remove unnecessary code and fix formatting.
- Update config.example.env and Copilot/.env.example to correct the LLM server URL.
- Remove unused code and update documentation in Copilot/README.md.
- Update navigation links in App/FeatureSet/Docs/Utils/Nav.ts to include Copilot documentation.
- Update Copilot/Config.ts and Copilot/Utils/Init.ts to use the new LLM server URL.
- Add logger statements in Copilot/Service/CopilotActions/CopilotActionsBase.ts to log file content.
2024-07-10 18:19:09 +01:00
Simon Larsen
6b9e0c8b99
chore: Disable Copilot in development environment 2024-07-10 13:39:35 +01:00
Simon Larsen
3eba4da4a8
refactor: Update CODE_REPOSITORY_PASSWORD and CODE_REPOSITORY_USERNAME environment variables
This commit updates the environment variables CODE_REPOSITORY_PASSWORD and CODE_REPOSITORY_USERNAME in the Copilot project. The previous variables GITHUB_TOKEN and GITHUB_USERNAME have been replaced with the new variables to improve clarity and consistency. The changes are made in multiple files, including .github/workflows/reliability-copilot.yml, Copilot/.env.example, Copilot/Config.ts, Copilot/Utils/CodeRepository.ts, Copilot/Utils/Init.ts, config.example.env, and docker-compose.base.yml. These updates ensure that the correct credentials are used for accessing the code repository in the Copilot project.
2024-07-08 15:45:14 +01:00
Simon Larsen
e4bf81fcc1
refactor: Update Copilot configuration for local development
This commit updates the Copilot configuration for local development. It adds environment variables and services to the docker-compose.base.yml and package.json files to support running Copilot locally. The changes include adding the "copilot" service to the docker-compose.base.yml file with the necessary environment variables for Copilot functionality. Additionally, it adds new npm scripts in the package.json file to start, build, and force-build Copilot. These updates enable developers to easily run and build Copilot locally for testing and development purposes.
2024-07-08 12:11:52 +01:00
Simon Larsen
b94d862cae
chore: Update LLM Dockerfile and build process 2024-06-28 12:14:49 +01:00
Simon Larsen
9a86978c9d
chore: Update Llama Models directory name to LLM
The directory name for Llama Models has been updated from "Llama/Models" to "LLM/Models". This change ensures consistency and aligns with the updated file paths in the codebase.
2024-06-28 11:32:44 +01:00
Simon Larsen
e2074b010e
refactor: Add notification webhook on user creation
This commit adds a notification webhook on user creation in the UserService. When a new user is created, a Slack message is sent to the specified webhook URL with details about the user's email, name, phone number, and company name. This feature enhances the user onboarding process and allows for better tracking and communication with new users.
2024-06-25 22:48:46 +01:00
Simon Larsen
70a9944f6a
refactor: Update Nginx configuration to enable HTTP/2
This commit updates the Nginx configuration file to enable HTTP/2 by removing the `http2` directive from the `listen` directive and adding a separate `http2` directive. This change ensures that the server supports the latest HTTP/2 protocol, improving performance and security.
2024-06-24 19:56:45 +01:00
Simon Larsen
4acedfdd62
Update nginx.yaml and values.yaml for hosting OneUptime and status page on different ports 2024-06-24 19:42:46 +01:00
Simon Larsen
3f315be279
refactor: Update Llama app to use local model path instead of model ID
This commit updates the Llama app to use a local model path instead of a model ID. The model path is set to "/app/Models/Meta-Llama-3-8B-Instruct". This change improves the reliability and performance of the app by directly referencing the model file instead of relying on an external model ID.
2024-06-18 21:41:29 +01:00
Simon Larsen
26bb6f1e74
refactor: Update Dockerfile.tpl to expose port 8547 instead of port 80
This commit modifies the Dockerfile.tpl file to update the EXPOSE directive. The port number is changed from 80 to 8547 to align with the port used by the Llama application. This change ensures that the Llama application is accessible from outside the container on the correct port.
2024-06-18 18:42:11 +01:00
Simon Larsen
4fa9adfc7d
refactor: Update login test to handle missing user credentials
The login test in Login.spec.ts has been updated to handle cases where the user credentials (email and password) are missing. Previously, the test would only check if the user is registered, but now it also checks if the registered user email and password are available. This change ensures that the test behaves correctly in all scenarios and improves the reliability of the login functionality.
2024-06-13 18:49:19 +01:00
Simon Larsen
d2a1385123
refactor: Update ALLOWED_ACTIVE_MONITOR_COUNT_IN_FREE_PLAN to 10
The ALLOWED_ACTIVE_MONITOR_COUNT_IN_FREE_PLAN constant has been updated to 10 in multiple files. This change aligns the codebase with the new limit for active monitors allowed in the free plan.
2024-06-11 13:50:55 +01:00
Simon Larsen
5f7dcf7433
refactor: Update timeout handling in monitor scripts
This commit updates the timeout handling in the monitor scripts to use the `WorkflowScriptTimeoutInMS` and `PROBE_CUSTOM_CODE_MONITOR_SCRIPT_TIMEOUT_IN_MS` values from the environment configuration. This ensures that the monitor scripts have consistent and configurable timeout values, improving the reliability and performance of the monitoring system.
2024-05-22 20:06:32 +01:00
Simon Larsen
c6643d7f7c
Update GreenlockUtil class to handle lets encrypt account key properly 2024-05-01 12:37:41 +01:00
Simon Larsen
1433823efe
Update LetsEncrypt configuration for OneUptime deployment 2024-05-01 12:13:01 +01:00
Simon Larsen
c348a8bd05
Refactor StatusPageDomainAPI to enable custom domains and improve CNAME verification process 2024-04-28 21:20:45 +01:00
Simon Larsen
00b5453b3f
Add LETSENCRYPT_NOTIFICATION_EMAIL configuration option 2024-04-28 13:09:23 +01:00
Simon Larsen
2870d28354
Fix restart value in e2e service of docker-compose.base.yml 2024-04-26 19:47:24 +01:00
Simon Larsen
899bc1d205
Update E2E cron job environment variables to use consistent naming convention 2024-04-26 19:19:38 +01:00
Simon Larsen
35c21d7611
Update E2E workflow to include failed webhook URL 2024-04-26 18:54:23 +01:00
Simon Larsen
818f8cc421
Update E2E workflow to use environment variables from config.env in test.e2e.yaml 2024-04-26 18:46:10 +01:00
Simon Larsen
9a78c4c24d
Refactor Docker Compose file to use common variables 2024-04-25 19:22:02 +01:00
Simon Larsen
1516f81180
Refactor E2E configuration and Docker Compose file 2024-04-25 15:07:33 +01:00
Simon Larsen
5d9a11fb48
Refactor E2E tests and Docker configuration 2024-04-25 12:58:39 +01:00
Simon Larsen
7f98e469cc
Update Nginx and Docker ports to use custom ports 7849 and 7850 2024-04-19 18:11:48 +01:00
Simon Larsen
a50510819b
Add Isolated VM debugging configuration and handle exceptions in code execution 2024-04-06 16:34:42 +01:00
Simon Larsen
27e9ee9721
Remove vm2 dependency and add ISOLATED_VM_PORT variable 2024-04-06 15:56:04 +01:00
Simon Larsen
c52501ef0e
Add SERVER_ISOLATED_VM_HOSTNAME to docker-compose.base.yml 2024-04-05 20:03:00 +01:00
Simon Larsen
36f290edf0
Add isolatedVMP port and update Dockerfile for IsolatedVM 2024-04-05 18:33:52 +01:00
Simon Larsen
e11b781fc5
Add log level configuration 2024-04-05 17:52:34 +01:00
Simon Larsen
f503a45f3b
Remove unused code and comments 2024-04-02 10:07:55 +01:00
Simon Larsen
92e3164071
Add logging statements and update environment variables in InfrastructureAgent 2024-03-12 11:30:19 +00:00
Simon Larsen
6c08d12f4c
Fix file path typo in Dockerfile and add secret key for development 2024-03-12 10:17:13 +00:00
Simon Larsen
7ced477ec9
Add OpenTelemetry OTLP HTTP exporter and headers 2024-02-23 12:47:14 +00:00
Simon Larsen
555e67076f
Remove unnecessary dependencies and links from docker-compose file 2024-02-22 18:26:07 +00:00
Simon Larsen
17fbae7cd5
Update telemetry environment variables 2024-02-22 17:07:33 +00:00
Simon Larsen
0cf5edc8e9
Add OpenTelemetry OTLP exporters and environment variables 2024-02-19 20:08:51 +00:00
Simon Larsen
5125d96981
Remove unused SMTP_USERNAME variable 2024-02-18 20:16:18 +00:00