rename fyipe -> oneuptime

This commit is contained in:
Nawaz Dhandala
2022-01-28 22:34:06 +00:00
parent 464b538d37
commit f155a88d90
280 changed files with 1498 additions and 1774 deletions

View File

@@ -25,6 +25,6 @@ api-docs/public/assets/*
js-sdk/src/cli/server-monitor/out/scripts/prettify/*
js-sdk/dist/logger.js
js-sdk/dist/logger.min.js
js-sdk/dist/fyipe.js
js-sdk/dist/fyipe.min.js
js-sdk/dist/oneuptime.js
js-sdk/dist/oneuptime.min.js
_test/*

View File

@@ -1,31 +1,33 @@
# OneUptime
OneUptime is an open-source complete SRE and DevOps platform.
OneUptime is an open-source complete SRE and DevOps platform.
OneUptime monitors your website, dashboards, API's, and more and alerts your team when downtime happens. We also give you a Status Page which keeps your customers looped in and improves transparency.
OneUptime does:
- Uptime Monitoring just like Pingdom
- Status Page just like StatusPage.io
- Tests just like Postman
- Security just like Snyk
- Logs Management just like Loggly
- Incident Management just like PagerDuty
- Performance Monitoring just like NewRelic
- Error Tracking just like Sentry
OneUptime does:
All under one platform.
- Uptime Monitoring just like Pingdom
- Status Page just like StatusPage.io
- Tests just like Postman
- Security just like Snyk
- Logs Management just like Loggly
- Incident Management just like PagerDuty
- Performance Monitoring just like NewRelic
- Error Tracking just like Sentry
All under one platform.
## Contents
- [Introduction](/docs/introduction.md)
- [Concept](/docs/concept.md)
- [Architecture](/docs/architecture.md)
- [How OneUptime Works](/docs/how-fyipe-works-overview)
- [How OneUptime Works](/docs/how-oneuptime-works-overview)
- [Subproject Description](/docs/project-description.md)
- [Running OneUptime](/docs/run.md)
- [Running tests](/docs/running-tests.md)
- [Deployment](/docs/deployment.md)
# Contribute
For contribution guidelines, see [CONTRIBUTING](/CONTRIBUTING.md).

View File

@@ -1,4 +1,4 @@
import fyipe from 'fyipe-staging'
import oneuptime from 'oneuptime-staging'
// constructor
@@ -8,7 +8,7 @@ const options = {
};
// constructor
const tracker = new fyipe.ErrorTracker(
const tracker = new oneuptime.ErrorTracker(
'https://staging.oneuptime.com/api',
'605bad70ae110c0013e14005',
'cb4b107a-7f28-464d-9fda-32715fa4cd68',

View File

@@ -9,7 +9,7 @@
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"fyipe-staging": "^3.0.9531"
"oneuptime-staging": "^3.0.9531"
}
},
"node_modules/@babel/code-frame": {
@@ -1038,9 +1038,9 @@
}
}
},
"node_modules/fyipe-staging": {
"node_modules/oneuptime-staging": {
"version": "3.0.9531",
"resolved": "https://registry.npmjs.org/fyipe-staging/-/fyipe-staging-3.0.9531.tgz",
"resolved": "https://registry.npmjs.org/oneuptime-staging/-/oneuptime-staging-3.0.9531.tgz",
"integrity": "sha512-vrsUVaiA8JeKIsBjC+AQNfP7wrYvydTI2Qg6EsB7HAntCkyXPYKQprZaaErOoyTI85xV5xKqZcjxbb238OerNg==",
"hasInstallScript": true,
"dependencies": {
@@ -1059,7 +1059,7 @@
"uuid": "^8.3.1"
},
"bin": {
"fyipe": "src/cli/fyipe.js"
"oneuptime": "src/cli/oneuptime.js"
},
"optionalDependencies": {
"node-linux": "^0.1.12",
@@ -1068,7 +1068,7 @@
"osx-temperature-sensor": "^1.0.7"
}
},
"node_modules/fyipe-staging/node_modules/commander": {
"node_modules/oneuptime-staging/node_modules/commander": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-7.1.0.tgz",
"integrity": "sha512-pRxBna3MJe6HKnBGsDyMv8ETbptw3axEdYHoqNh7gu5oDcew8fs0xnivZGm06Ogk8zGAJ9VX+OPEr2GXEQK4dg==",
@@ -3338,9 +3338,9 @@
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.3.tgz",
"integrity": "sha512-DUgl6+HDzB0iEptNQEXLx/KhTmDb8tZUHSeLqpnjpknR70H0nC2t9N73BK6fN4hOvJ84pKlIQVQ4k5FFlBedKA=="
},
"fyipe-staging": {
"oneuptime-staging": {
"version": "3.0.9531",
"resolved": "https://registry.npmjs.org/fyipe-staging/-/fyipe-staging-3.0.9531.tgz",
"resolved": "https://registry.npmjs.org/oneuptime-staging/-/oneuptime-staging-3.0.9531.tgz",
"integrity": "sha512-vrsUVaiA8JeKIsBjC+AQNfP7wrYvydTI2Qg6EsB7HAntCkyXPYKQprZaaErOoyTI85xV5xKqZcjxbb238OerNg==",
"requires": {
"@babel/polyfill": "^7.10.1",

View File

@@ -10,6 +10,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"fyipe-staging": "^3.0.9531"
"oneuptime-staging": "^3.0.9531"
}
}

View File

@@ -1,6 +1,6 @@
// In a FrontEnd Environment
import fyipe from 'fyipe-staging';
const Logger = fyipe.Logger;
import oneuptime from 'oneuptime-staging';
const Logger = oneuptime.Logger;
// constructor
const logger = new Logger(

View File

@@ -9,7 +9,7 @@
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"fyipe-staging": "^3.0.9421"
"oneuptime-staging": "^3.0.9421"
}
},
"node_modules/@babel/code-frame": {
@@ -1038,9 +1038,9 @@
}
}
},
"node_modules/fyipe-staging": {
"node_modules/oneuptime-staging": {
"version": "3.0.9421",
"resolved": "https://registry.npmjs.org/fyipe-staging/-/fyipe-staging-3.0.9421.tgz",
"resolved": "https://registry.npmjs.org/oneuptime-staging/-/oneuptime-staging-3.0.9421.tgz",
"integrity": "sha512-PFDfzkvA9R7ExRLSCI1zMCiIe+jVPirIbXXOpXaQWp86lnuOSIjktYshxJWWqf2eSMVA5r0uhJ5GI4AecdYjRQ==",
"hasInstallScript": true,
"license": "ISC",
@@ -1060,7 +1060,7 @@
"uuid": "^8.3.1"
},
"bin": {
"fyipe": "src/cli/fyipe.js"
"oneuptime": "src/cli/oneuptime.js"
},
"optionalDependencies": {
"node-linux": "^0.1.12",
@@ -1069,7 +1069,7 @@
"osx-temperature-sensor": "^1.0.7"
}
},
"node_modules/fyipe-staging/node_modules/commander": {
"node_modules/oneuptime-staging/node_modules/commander": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-7.1.0.tgz",
"integrity": "sha512-pRxBna3MJe6HKnBGsDyMv8ETbptw3axEdYHoqNh7gu5oDcew8fs0xnivZGm06Ogk8zGAJ9VX+OPEr2GXEQK4dg==",
@@ -3339,9 +3339,9 @@
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.3.tgz",
"integrity": "sha512-DUgl6+HDzB0iEptNQEXLx/KhTmDb8tZUHSeLqpnjpknR70H0nC2t9N73BK6fN4hOvJ84pKlIQVQ4k5FFlBedKA=="
},
"fyipe-staging": {
"oneuptime-staging": {
"version": "3.0.9421",
"resolved": "https://registry.npmjs.org/fyipe-staging/-/fyipe-staging-3.0.9421.tgz",
"resolved": "https://registry.npmjs.org/oneuptime-staging/-/oneuptime-staging-3.0.9421.tgz",
"integrity": "sha512-PFDfzkvA9R7ExRLSCI1zMCiIe+jVPirIbXXOpXaQWp86lnuOSIjktYshxJWWqf2eSMVA5r0uhJ5GI4AecdYjRQ==",
"requires": {
"@babel/polyfill": "^7.10.1",

View File

@@ -10,6 +10,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"fyipe-staging": "^3.0.9421"
"oneuptime-staging": "^3.0.9421"
}
}

View File

@@ -9,7 +9,7 @@
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"fyipe-staging": "^3.0.7862"
"oneuptime-staging": "^3.0.7862"
}
},
"node_modules/@babel/code-frame": {
@@ -835,9 +835,9 @@
}
}
},
"node_modules/fyipe-staging": {
"node_modules/oneuptime-staging": {
"version": "3.0.8981",
"resolved": "https://registry.npmjs.org/fyipe-staging/-/fyipe-staging-3.0.8981.tgz",
"resolved": "https://registry.npmjs.org/oneuptime-staging/-/oneuptime-staging-3.0.8981.tgz",
"integrity": "sha512-lKkbDgmii+MAqqP0TkvNHANzWPEJdj8qVD2fiXlpgJ6dzCIuY1bn5brGeQRUfVSFR53puYsxmm4Qm/H/+hg1KA==",
"dependencies": {
"@babel/polyfill": "^7.10.1",
@@ -2196,9 +2196,9 @@
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.3.tgz",
"integrity": "sha512-DUgl6+HDzB0iEptNQEXLx/KhTmDb8tZUHSeLqpnjpknR70H0nC2t9N73BK6fN4hOvJ84pKlIQVQ4k5FFlBedKA=="
},
"fyipe-staging": {
"oneuptime-staging": {
"version": "3.0.8981",
"resolved": "https://registry.npmjs.org/fyipe-staging/-/fyipe-staging-3.0.8981.tgz",
"resolved": "https://registry.npmjs.org/oneuptime-staging/-/oneuptime-staging-3.0.8981.tgz",
"integrity": "sha512-lKkbDgmii+MAqqP0TkvNHANzWPEJdj8qVD2fiXlpgJ6dzCIuY1bn5brGeQRUfVSFR53puYsxmm4Qm/H/+hg1KA==",
"requires": {
"@babel/polyfill": "^7.10.1",

View File

@@ -9,6 +9,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"fyipe-staging": "^3.0.7862"
"oneuptime-staging": "^3.0.7862"
}
}

View File

@@ -1,6 +1,6 @@
const express = require('express')
// If your env supports require
const Fyipe = require('fyipe-staging');
const OneUptime = require('oneuptime-staging');
const app = express()
const axios = require('axios');
@@ -15,7 +15,7 @@ const options = {
};
// constructor
new Fyipe.PerformanceTracker(
new OneUptime.PerformanceTracker(
options
);

View File

@@ -9,7 +9,7 @@
"license": "ISC",
"dependencies": {
"express": "^4.17.1",
"fyipe-staging": "^3.0.10585"
"oneuptime-staging": "^3.0.10585"
}
},
"node_modules/@babel/code-frame": {
@@ -1281,9 +1281,9 @@
"node": ">= 0.6"
}
},
"node_modules/fyipe-staging": {
"node_modules/oneuptime-staging": {
"version": "3.0.10585",
"resolved": "https://registry.npmjs.org/fyipe-staging/-/fyipe-staging-3.0.10585.tgz",
"resolved": "https://registry.npmjs.org/oneuptime-staging/-/oneuptime-staging-3.0.10585.tgz",
"integrity": "sha512-4VeFxfoxOzVEfZMuUSrpwrHSREoXj3/TPY6pPfe+ssrX9f3p4pcu5K7VXdKRX52AYp8zmCO7dP9GY7kIp8mm7Q==",
"hasInstallScript": true,
"dependencies": {
@@ -1306,7 +1306,7 @@
"uuid": "^8.3.1"
},
"bin": {
"fyipe": "src/cli/fyipe.js"
"oneuptime": "src/cli/oneuptime.js"
},
"optionalDependencies": {
"node-linux": "^0.1.12",
@@ -4033,9 +4033,9 @@
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
"integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac="
},
"fyipe-staging": {
"oneuptime-staging": {
"version": "3.0.10585",
"resolved": "https://registry.npmjs.org/fyipe-staging/-/fyipe-staging-3.0.10585.tgz",
"resolved": "https://registry.npmjs.org/oneuptime-staging/-/oneuptime-staging-3.0.10585.tgz",
"integrity": "sha512-4VeFxfoxOzVEfZMuUSrpwrHSREoXj3/TPY6pPfe+ssrX9f3p4pcu5K7VXdKRX52AYp8zmCO7dP9GY7kIp8mm7Q==",
"requires": {
"@babel/polyfill": "^7.10.1",

View File

@@ -10,6 +10,6 @@
"license": "ISC",
"dependencies": {
"express": "^4.17.1",
"fyipe-staging": "^3.0.10585"
"oneuptime-staging": "^3.0.10585"
}
}

View File

@@ -28,13 +28,13 @@ app.use(async function(req, res, next) {
const host = req.hostname;
try {
if (host && host === 'fyipe.com') {
if (host && host === 'oneuptime.com') {
res.writeHead(301, {
Location: `https://oneuptime.com${req.url}`,
});
return res.end();
}
if (host && host === 'staging.fyipe.com') {
if (host && host === 'staging.oneuptime.com') {
res.writeHead(301, {
Location: `https://staging.oneuptime.com${req.url}`,
});

View File

@@ -52,12 +52,12 @@ const App = ({
checkIfMasterAdminExists,
saveStatusPage,
}) => {
const oldHostNames = ['staging.fyipe.com', 'fyipe.com'];
const oldHostNames = ['staging.oneuptime.com', 'oneuptime.com'];
const currentHostName = window.location.hostname;
if (oldHostNames.includes(currentHostName)) {
const updatedLink = `${window.location.origin.replace(
'fyipe',
'oneuptime',
'oneuptime'
)}${window.location.pathname}`;

View File

@@ -25,13 +25,13 @@ app.use(async function(req, res, next) {
const host = req.hostname;
try {
if (host && host === 'fyipe.com') {
if (host && host === 'oneuptime.com') {
res.writeHead(301, {
Location: `https://oneuptime.com${req.url}`,
});
return res.end();
}
if (host && host === 'staging.fyipe.com') {
if (host && host === 'staging.oneuptime.com') {
res.writeHead(301, {
Location: `https://staging.oneuptime.com${req.url}`,
});

View File

@@ -11,7 +11,7 @@
"dependencies": {
"react-scripts": "^4.0.3",
"react-redux": "^7.2.4",
"react-select-fyipe": "^2.1.8",
"react-select-oneuptime": "^2.1.8",
"axios": "^0.21.1",
"clipboard": "^2.0.8",
"redux-logger": "^3.0.6",
@@ -151,9 +151,9 @@
"node": ">=0.10.0"
}
},
"node_modules/react-select-fyipe": {
"node_modules/react-select-oneuptime": {
"version": "2.1.8",
"resolved": "https://registry.npmjs.org/react-select-fyipe/-/react-select-fyipe-2.1.8.tgz",
"resolved": "https://registry.npmjs.org/react-select-oneuptime/-/react-select-oneuptime-2.1.8.tgz",
"integrity": "sha512-ZSATT70NktDwZFRy1OZ5gpgXtD3JGPbXnaL07Pki/jaE78OwBBQMk7nxocZDKEDvhaNXW5QHuvras2wZloDOIg==",
"dependencies": {
"classnames": "^2.2.5",
@@ -4670,7 +4670,7 @@
"request": "^2.34"
}
},
"node_modules/react-select-fyipe/node_modules/react-input-autosize": {
"node_modules/react-select-oneuptime/node_modules/react-input-autosize": {
"version": "2.2.2",
"resolved": "https://registry.npmjs.org/react-input-autosize/-/react-input-autosize-2.2.2.tgz",
"integrity": "sha512-jQJgYCA3S0j+cuOwzuCd1OjmBmnZLdqQdiLKRYrsMMzbjUrVDS5RvJUDwJqA7sKuksDuzFtm6hZGKFu7Mjk5aw==",
@@ -11269,7 +11269,7 @@
"node": ">=0.10.0"
}
},
"node_modules/react-select-fyipe/node_modules/memoize-one": {
"node_modules/react-select-oneuptime/node_modules/memoize-one": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-4.0.3.tgz",
"integrity": "sha512-QmpUu4KqDmX0plH4u+tf0riMc1KHE1+lw95cMrLlXQAFOx/xnBtwhZ52XJxd9X2O6kwKBqX32kmhbhlobD0cuw=="
@@ -14455,7 +14455,7 @@
"node": ">=8"
}
},
"node_modules/react-select-fyipe/node_modules/react-transition-group": {
"node_modules/react-select-oneuptime/node_modules/react-transition-group": {
"version": "2.9.0",
"resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-2.9.0.tgz",
"integrity": "sha512-+HzNTCHpeQyl4MJ/bdE0u6XRMe9+XG/+aL4mCxVN4DnPBQ0/5bfHWPDuOZUzYdMj94daZaZdCCc1Dzt9R/xSSg==",
@@ -42861,9 +42861,9 @@
"react-transition-group": "^4.3.0"
}
},
"react-select-fyipe": {
"react-select-oneuptime": {
"version": "2.1.8",
"resolved": "https://registry.npmjs.org/react-select-fyipe/-/react-select-fyipe-2.1.8.tgz",
"resolved": "https://registry.npmjs.org/react-select-oneuptime/-/react-select-oneuptime-2.1.8.tgz",
"integrity": "sha512-ZSATT70NktDwZFRy1OZ5gpgXtD3JGPbXnaL07Pki/jaE78OwBBQMk7nxocZDKEDvhaNXW5QHuvras2wZloDOIg==",
"requires": {
"classnames": "^2.2.5",

View File

@@ -30,7 +30,7 @@
"react-router-redux": "^4.0.8",
"react-scripts": "^4.0.3",
"react-select": "^4.3.1",
"react-select-fyipe": "^2.1.8",
"react-select-oneuptime": "^2.1.8",
"react-widgets": "^4.4.9",
"redux": "^4.1.1",
"redux-form": "^8.3.7",

View File

@@ -31,12 +31,12 @@ if (userData !== undefined) {
}
const App = () => {
const oldHostNames = ['staging.fyipe.com', 'fyipe.com'];
const oldHostNames = ['staging.oneuptime.com', 'oneuptime.com'];
const currentHostName = window.location.hostname;
if (oldHostNames.includes(currentHostName)) {
const updatedLink = `${window.location.origin.replace(
'fyipe',
'oneuptime',
'oneuptime'
)}${window.location.pathname}`;

View File

@@ -1,6 +1,6 @@
import React, { useState, useRef, useEffect } from 'react';
import PropTypes from 'prop-types';
import Select from './react-select-fyipe';
import Select from './react-select-oneuptime';
const RenderSelect = ({
input,

View File

@@ -2,7 +2,7 @@ import React from 'react';
import Select from 'react-select';
import PropTypes from 'prop-types';
const ReactSelectFyipe = props => (
const ReactSelectOneUptime = props => (
<Select
{...props}
styles={{
@@ -32,8 +32,8 @@ const ReactSelectFyipe = props => (
/>
);
ReactSelectFyipe.displayName = 'ReactSelectFyipe';
ReactSelectFyipe.propTypes = {
ReactSelectOneUptime.displayName = 'ReactSelectOneUptime';
ReactSelectOneUptime.propTypes = {
style: PropTypes.object,
};
export default ReactSelectFyipe;
export default ReactSelectOneUptime;

View File

@@ -4,7 +4,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import Select from 'react-select-fyipe';
import Select from 'react-select-oneuptime';
/**
* onChange from Redux Form Field has to be called explicity.

View File

@@ -84,7 +84,7 @@ class ProjectVerifyDomain extends Component {
registrar. For help on how you can
add txt records, follow this{' '}
<a
href="https://github.com/Fyipe/feature-docs/blob/master/txt-records.md"
href="https://github.com/OneUptime/feature-docs/blob/master/txt-records.md"
target="_blank"
rel="noopener noreferrer"
className="Text-fontWeight--medium"

View File

@@ -1,6 +1,6 @@
# OneUptime API Documentation
[![Build Status](https://travis-ci.org/Fyipe/api-docs.svg?branch=master)](https://travis-ci.org/Fyipe/api-docs)
[![Build Status](https://travis-ci.org/OneUptime/api-docs.svg?branch=master)](https://travis-ci.org/OneUptime/api-docs)
This is the API Reference for OneUptime which is hosted at [https://oneuptime.com/docs](https://oneuptime.com/docs).

View File

@@ -5,14 +5,14 @@
"main": "Gruntfile.js",
"repository": {
"type": "git",
"url": "git+https://github.com/Fyipe/api-docs.git"
"url": "git+https://github.com/OneUptime/api-docs.git"
},
"author": "HackerBay, Inc.",
"license": "ISC",
"bugs": {
"url": "https://github.com/fyipe/api-docs/issues"
"url": "https://github.com/oneuptime/api-docs/issues"
},
"homepage": "https://github.com/fyipe/api-docs#readme",
"homepage": "https://github.com/oneuptime/api-docs#readme",
"dependencies": {
"@sentry/node": "^6.16.1",
"@sentry/tracing": "^6.16.1",

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -91,13 +91,13 @@ app.use(async function(req, res, next) {
const host = req.hostname;
try {
if (host && host === 'fyipe.com') {
if (host && host === 'oneuptime.com') {
res.writeHead(301, {
Location: `https://oneuptime.com${req.url}`,
});
return res.end();
}
if (host && host === 'staging.fyipe.com') {
if (host && host === 'staging.oneuptime.com') {
res.writeHead(301, {
Location: `https://staging.oneuptime.com${req.url}`,
});

View File

@@ -6,7 +6,7 @@ RATE_LIMITTER_ENABLED=false
AIRTABLE_API_KEY=keye3gzJRafDIhRKg
AIRTABLE_BASE_ID=appgek0ngJaHhppeJ
JWT_SECRET=idfn39847392879483
MONGO_URL=mongodb://localhost:27017/fyipedb
MONGO_URL=mongodb://localhost:27017/oneuptimedb
REDIS_HOST=localhost
CLUSTER_KEY=f414c23b4cdf4e84a6a66ecfd528eff2
TEST_TWILIO_NUMBER=+919910568840

View File

@@ -1,7 +1,7 @@
const mongoose = require('mongoose');
const logger = require('./logger');
const mongoUrl =
process.env['MONGO_URL'] || 'mongodb://localhost:27017/fyipedb';
process.env['MONGO_URL'] || 'mongodb://localhost:27017/oneuptimedb';
mongoose.set('useNewUrlParser', true);
mongoose.set('useUnifiedTopology', true);

View File

@@ -1,3 +1,3 @@
module.exports = {
domains: ['hackerbay.io', 'fyipe.com'],
domains: ['hackerbay.io', 'oneuptime.com'],
};

View File

@@ -1,7 +1,7 @@
module.exports = {
CLIENT_ID: process.env['CLIENT_ID'] || '3133949145.437395941636',
API_ROUTE: process.env['API_ROUTE'] || 'https://fyipe.com/api',
APP_ROUTE: process.env['APP_ROUTE'] || 'https://dashboard.fyipe.com',
API_ROUTE: process.env['API_ROUTE'] || 'https://oneuptime.com/api',
APP_ROUTE: process.env['APP_ROUTE'] || 'https://dashboard.oneuptime.com',
CLIENT_SECRET:
process.env['CLIENT_SECRET'] || '1c2efd0dba60a650d5a21492a4c46a0e',
};

View File

@@ -142,7 +142,7 @@ module.exports = {
try {
const parsed = psl.parse(subDomain);
const host = 'oneuptime';
const previousHost = 'fyipe';
const previousHost = 'oneuptime';
const domain = parsed.domain;
const domainToLookup = `${host}.${domain}`;
const prevDomainToLookup = `${previousHost}.${domain}`;

View File

@@ -41,7 +41,7 @@ module.exports = {
feedback.templateName = 'User Feedback';
try {
MailService.sendLeadEmailToFyipeTeam(feedback);
MailService.sendLeadEmailToOneUptimeTeam(feedback);
MailService.sendUserFeedbackResponse(user.email, user.name);
} catch (error) {
ErrorService.log('feedbackservice.create', error);

View File

@@ -25,7 +25,7 @@ module.exports = {
lead = await lead.save();
try {
MailService.sendLeadEmailToFyipeTeam(lead);
MailService.sendLeadEmailToOneUptimeTeam(lead);
if (data.type) {
if (data.type === 'demo') {
MailService.sendRequestDemoEmail(data.email);

View File

@@ -871,7 +871,7 @@ const _this = {
throw error;
}
},
sendLeadEmailToFyipeTeam: async function(lead) {
sendLeadEmailToOneUptimeTeam: async function(lead) {
let mailOptions = {};
let EmailBody;
let smtpServer = 'internal';
@@ -1038,7 +1038,7 @@ const _this = {
return info;
}
} catch (error) {
ErrorService.log('mailService.sendLeadEmailToFyipeTeam', error);
ErrorService.log('mailService.sendLeadEmailToOneUptimeTeam', error);
await EmailStatusService.create({
from: mailOptions.from,
to: mailOptions.to,

View File

@@ -9,7 +9,7 @@
"version": "3.0.0",
"hasInstallScript": true,
"dependencies": {
"fyipe-le-store": "^3.0.10432",
"oneuptime-le-store": "^3.0.10432",
"jsonwebtoken": "^8.5.1",
"node-device-detector": "^1.3.6",
"oneuptime-gl-manager": "^3.0.14390",
@@ -30,8 +30,8 @@
"winston-logstash-transport": "^2.0.0",
"@sentry/tracing": "^6.12.0",
"nodemailer-express-handlebars": "^4.0.0",
"fyipe-acme-http-01": "^3.0.10432",
"fyipe-gl-manager": "^3.0.13361",
"oneuptime-acme-http-01": "^3.0.10432",
"oneuptime-gl-manager": "^3.0.13361",
"date-fns": "^2.22.1",
"ipaddr.js": "^2.0.0",
"saml2-js": "^3.0.1",
@@ -2471,9 +2471,9 @@
"node": ">=8"
}
},
"node_modules/fyipe-gl-manager": {
"node_modules/oneuptime-gl-manager": {
"version": "3.0.14220",
"resolved": "https://registry.npmjs.org/fyipe-gl-manager/-/fyipe-gl-manager-3.0.14220.tgz",
"resolved": "https://registry.npmjs.org/oneuptime-gl-manager/-/oneuptime-gl-manager-3.0.14220.tgz",
"integrity": "sha512-i6tQNo4DOpPerjn9E1kGO+3lqG80NF62eN2eM4xoZIv0Gx94YG0bTO0UIMP3UCB4ytD6MdIMQew6k2TvQUWHDQ==",
"dependencies": {
"axios": "^0.21.1"
@@ -3263,9 +3263,9 @@
"node": ">= 4.0"
}
},
"node_modules/fyipe-acme-http-01": {
"node_modules/oneuptime-acme-http-01": {
"version": "3.0.14166",
"resolved": "https://registry.npmjs.org/fyipe-acme-http-01/-/fyipe-acme-http-01-3.0.14166.tgz",
"resolved": "https://registry.npmjs.org/oneuptime-acme-http-01/-/oneuptime-acme-http-01-3.0.14166.tgz",
"integrity": "sha512-Ioete+aAJ6/NxRnNLUng2QDRvWqqx/5gTd1DiFAy2qdtKsvGhPQYQ4Kc++cRh+BQDPs4m0sGNP0vdgAbb0UgMg==",
"dependencies": {
"axios": "^0.21.1"
@@ -3598,9 +3598,9 @@
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
"node_modules/fyipe-le-store": {
"node_modules/oneuptime-le-store": {
"version": "3.0.14166",
"resolved": "https://registry.npmjs.org/fyipe-le-store/-/fyipe-le-store-3.0.14166.tgz",
"resolved": "https://registry.npmjs.org/oneuptime-le-store/-/oneuptime-le-store-3.0.14166.tgz",
"integrity": "sha512-JmCt+e4X82nKWD+Dbq9rD/uactExmR00DC8Uy5tc3ytxfwda+FoC5uTbuuuHctgNCuwNZn/0YtkEEDx9rOjSmQ==",
"dependencies": {
"axios": "^0.21.1"
@@ -11903,25 +11903,25 @@
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
"dev": true
},
"fyipe-acme-http-01": {
"oneuptime-acme-http-01": {
"version": "3.0.14166",
"resolved": "https://registry.npmjs.org/fyipe-acme-http-01/-/fyipe-acme-http-01-3.0.14166.tgz",
"resolved": "https://registry.npmjs.org/oneuptime-acme-http-01/-/oneuptime-acme-http-01-3.0.14166.tgz",
"integrity": "sha512-Ioete+aAJ6/NxRnNLUng2QDRvWqqx/5gTd1DiFAy2qdtKsvGhPQYQ4Kc++cRh+BQDPs4m0sGNP0vdgAbb0UgMg==",
"requires": {
"axios": "^0.21.1"
}
},
"fyipe-gl-manager": {
"oneuptime-gl-manager": {
"version": "3.0.14220",
"resolved": "https://registry.npmjs.org/fyipe-gl-manager/-/fyipe-gl-manager-3.0.14220.tgz",
"resolved": "https://registry.npmjs.org/oneuptime-gl-manager/-/oneuptime-gl-manager-3.0.14220.tgz",
"integrity": "sha512-i6tQNo4DOpPerjn9E1kGO+3lqG80NF62eN2eM4xoZIv0Gx94YG0bTO0UIMP3UCB4ytD6MdIMQew6k2TvQUWHDQ==",
"requires": {
"axios": "^0.21.1"
}
},
"fyipe-le-store": {
"oneuptime-le-store": {
"version": "3.0.14166",
"resolved": "https://registry.npmjs.org/fyipe-le-store/-/fyipe-le-store-3.0.14166.tgz",
"resolved": "https://registry.npmjs.org/oneuptime-le-store/-/oneuptime-le-store-3.0.14166.tgz",
"integrity": "sha512-JmCt+e4X82nKWD+Dbq9rD/uactExmR00DC8Uy5tc3ytxfwda+FoC5uTbuuuHctgNCuwNZn/0YtkEEDx9rOjSmQ==",
"requires": {
"axios": "^0.21.1"

View File

@@ -21,9 +21,9 @@
"express": "^4.17.1",
"express-rate-limit": "^5.2.6",
"express-request-id": "^1.4.1",
"fyipe-acme-http-01": "^3.0.10432",
"fyipe-gl-manager": "^3.0.13361",
"fyipe-le-store": "^3.0.10432",
"oneuptime-acme-http-01": "^3.0.10432",
"oneuptime-gl-manager": "^3.0.13361",
"oneuptime-le-store": "^3.0.10432",
"geoip-lite": "^1.4.2",
"greenlock": "^4.0.4",
"gridfs-stream": "^1.1.1",
@@ -81,7 +81,7 @@
"enterprise-test": "cross-env NODE_ENV=development IS_TESTING=true nyc --reporter=lcov --reporter=text mocha --exit test/enterprise.js",
"audit": "npm audit --audit-level=low",
"preinstall": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"dep-check": "depcheck ./ --skip-missing=true --ignores='ejs,fyipe-acme-http-01,fyipe-gl-manager,fyipe-le-store'"
"dep-check": "depcheck ./ --skip-missing=true --ignores='ejs,oneuptime-acme-http-01,oneuptime-gl-manager,oneuptime-le-store'"
},
"devDependencies": {
"chai": "^4.3.4",

View File

@@ -434,7 +434,7 @@ mongoose.connection.on('connected', async () => {
const greenlock = Gl.create({
manager: 'oneuptime-gl-manager',
packageRoot: process.cwd(),
maintainerEmail: 'certs@fyipe.com',
maintainerEmail: 'certs@oneuptime.com',
staging: false,
notify: function(event, details) {
if ('error' === event) {
@@ -454,7 +454,7 @@ mongoose.connection.on('connected', async () => {
});
await greenlock.manager.defaults({
agreeToTerms: true,
subscriberEmail: 'certs@fyipe.com',
subscriberEmail: 'certs@oneuptime.com',
});
global.greenlock = greenlock;
}

View File

@@ -425,7 +425,7 @@ describe('Status API', function() {
it('should create a domain', function(done) {
const authorization = `Basic ${token}`;
const data = { domain: 'fyipeapp.com' };
const data = { domain: 'oneuptimeapp.com' };
request
.put(`/statusPage/${projectId}/${statusPageId}/domain`)
.set('Authorization', authorization)
@@ -439,7 +439,7 @@ describe('Status API', function() {
it('should create a domain with subdomain', function(done) {
const authorization = `Basic ${token}`;
const data = { domain: 'status.fyipeapp.com' };
const data = { domain: 'status.oneuptimeapp.com' };
request
.put(`/statusPage/${projectId}/${statusPageId}/domain`)
.set('Authorization', authorization)
@@ -455,7 +455,7 @@ describe('Status API', function() {
// a domain needs to be created before verifying it
it('should verify a domain', function(done) {
const authorization = `Basic ${token}`;
const domain = 'fyipeapp.com';
const domain = 'oneuptimeapp.com';
const verificationToken = 'm2ab5osUmz9Y7Ko';
// update the verification token to a live version
DomainVerificationService.updateOneBy(
@@ -531,7 +531,7 @@ describe('Status API', function() {
it('should not verify a domain if txt record is not found', function(done) {
const authorization = `Basic ${token}`;
const domain = 'fyipeapp.com';
const domain = 'oneuptimeapp.com';
const verificationToken = 'thistokenwillnotwork';
// update the verification token to a live version
DomainVerificationService.updateOneBy(
@@ -583,7 +583,7 @@ describe('Status API', function() {
it('should not save domain if domain is invalid', function(done) {
const authorization = `Basic ${token}`;
const data = { domain: 'status.fyipe.hackerbay' };
const data = { domain: 'status.oneuptime.hackerbay' };
request
.put(`/statusPage/${projectId}/${statusPageId}/domain`)
.set('Authorization', authorization)
@@ -600,7 +600,7 @@ describe('Status API', function() {
it.skip('should save an array of valid domains', function(done) {
const authorization = `Basic ${token}`;
const data = {
domain: [{ domain: 'fyipe.z.com' }, { domain: 'fyipe1.z.com' }],
domain: [{ domain: 'oneuptime.z.com' }, { domain: 'oneuptime1.z.com' }],
};
request
.put(`/statusPage/${projectId}/${statusPageId}/domain`)
@@ -619,8 +619,8 @@ describe('Status API', function() {
const authorization = `Basic ${token}`;
const data = {
domain: [
{ domain: 'fyipe.z1.com' },
{ domain: 'fyipe.z1.hackerbay' },
{ domain: 'oneuptime.z1.com' },
{ domain: 'oneuptime.z1.hackerbay' },
],
};
request
@@ -650,7 +650,7 @@ describe('Status API', function() {
it('should reject adding an existing domain', function(done) {
const authorization = `Basic ${token}`;
const data = { domain: 'status.fyipeapp.com' };
const data = { domain: 'status.oneuptimeapp.com' };
request
.put(`/statusPage/${projectId}/${statusPageId}/domain`)
.set('Authorization', authorization)
@@ -666,7 +666,7 @@ describe('Status API', function() {
// This test will try to create another domain with the same domain on another project
it('should add domain if it exist in another project and if the domain in other project is NOT verified.', function(done) {
const authorization = `Basic ${token}`;
const data = { domain: 'fyipeapp.com' };
const data = { domain: 'oneuptimeapp.com' };
request
.post(`/project/create`)
.set('Authorization', authorization)
@@ -702,7 +702,7 @@ describe('Status API', function() {
res.body.domains.length
).to.be.greaterThan(0);
expect(res.body.domains[0].domain).to.be.equal(
'fyipeapp.com'
'oneuptimeapp.com'
);
done();
});
@@ -759,7 +759,7 @@ describe('Status API', function() {
it('should update a domain on a status page successfully', function(done) {
const authorization = `Basic ${token}`;
const data = { domain: 'app.fyipeapp.com' };
const data = { domain: 'app.oneuptimeapp.com' };
StatusService.findOneBy({ _id: statusPageId }).then(statusPage => {
// select the first domain
@@ -797,7 +797,7 @@ describe('Status API', function() {
it('should not update a domain on a status page if the domain is not a string', function(done) {
const authorization = `Basic ${token}`;
const data = { domain: { url: 'shop.fyipeapp.com' } };
const data = { domain: { url: 'shop.oneuptimeapp.com' } };
StatusService.findOneBy({ _id: statusPageId }).then(statusPage => {
// select the first domain
@@ -816,7 +816,7 @@ describe('Status API', function() {
it('should not update a domain on a status page if the status page is missing or not found', function(done) {
const authorization = `Basic ${token}`;
const data = { domain: { url: 'shop.fyipeapp.com' } };
const data = { domain: { url: 'shop.oneuptimeapp.com' } };
StatusService.findOneBy({ _id: statusPageId }).then(statusPage => {
// select the first domain

View File

@@ -1,4 +1,4 @@
module.exports = {
testphoneNumber: '+15853641376',
testemail: 'fyipetest@qa.team',
testemail: 'oneuptimetest@qa.team',
};

View File

@@ -54,7 +54,7 @@
<tr style="line-height:0px">
<td width="100%" style="font-size:0px" align="center" height="1">
<a href="https://oneuptime.com" target="_blank" data-saferedirecturl="https://oneuptime.com">
<img class="logo" src="https://www.dropbox.com/s/07u7yu49wfflalr/Fyipe-Transparent.png?dl=0&r=1&raw=1" style="max-height:73px;width:100px" alt="" width="80px" class="CToWUd">
<img class="logo" src="https://www.dropbox.com/s/07u7yu49wfflalr/OneUptime-Transparent.png?dl=0&r=1&raw=1" style="max-height:73px;width:100px" alt="" width="80px" class="CToWUd">
</a>.
</td>
</tr>

View File

@@ -55,7 +55,7 @@
<tr style="line-height:0px">
<td width="100%" style="font-size:0px" align="left" height="1">
<a href="https://oneuptime.com" target="_blank" data-saferedirecturl="https://oneuptime.com">
<img class="logo" src="https://www.dropbox.com/s/07u7yu49wfflalr/Fyipe-Transparent.png?dl=0&r=1&raw=1" style="max-height:73px;width:100px" alt="" width="80px" class="CToWUd">
<img class="logo" src="https://www.dropbox.com/s/07u7yu49wfflalr/OneUptime-Transparent.png?dl=0&r=1&raw=1" style="max-height:73px;width:100px" alt="" width="80px" class="CToWUd">
</a>.
</td>
</tr>

View File

@@ -21,7 +21,7 @@ spec:
imagePullPolicy: Always
env:
- name: MONGO_URL
value: 'mongodb://admin:372b60f4-704c-4205-8e5c-45cdbf44b1fc@mongo-0.mongo.default.svc.cluster.local:27017,mongo-1.mongo.default.svc.cluster.local:27017,mongo-2.mongo.default.svc.cluster.local:27017/fyipedb?replicaSet=rs0'
value: 'mongodb://admin:372b60f4-704c-4205-8e5c-45cdbf44b1fc@mongo-0.mongo.default.svc.cluster.local:27017,mongo-1.mongo.default.svc.cluster.local:27017,mongo-2.mongo.default.svc.cluster.local:27017/oneuptimedb?replicaSet=rs0'
restartPolicy: Never
---
###########################

View File

@@ -3,9 +3,9 @@ sudo dpkg --configure -a
echo "Running Cleanup Script..."
if [[ $(which helm) ]]
then
# Remove fyipe if helm is installed
echo "RUNNING COMMAND: sudo helm uninstall fyipe || echo 'fyipe not installed'"
sudo helm uninstall fyipe || echo 'fyipe not installed'
# Remove oneuptime if helm is installed
echo "RUNNING COMMAND: sudo helm uninstall oneuptime || echo 'oneuptime not installed'"
sudo helm uninstall oneuptime || echo 'oneuptime not installed'
fi
if [[ $(which microk8s) ]]

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
echo "Connect machine with to communicate with aws cluster"
# This command will automatically switch to the fyipe-production cluster
sudo aws eks update-kubeconfig --region $AWS_DEFAULT_REGION --name fyipe-production
# This command will automatically switch to the oneuptime-production cluster
sudo aws eks update-kubeconfig --region $AWS_DEFAULT_REGION --name oneuptime-production

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
echo "Connect machine with to communicate with aws cluster"
# This command will automatically switch to the fyipe-staging cluster
sudo aws eks update-kubeconfig --region $AWS_DEFAULT_REGION --name fyipe-staging
# This command will automatically switch to the oneuptime-staging cluster
sudo aws eks update-kubeconfig --region $AWS_DEFAULT_REGION --name oneuptime-staging

View File

@@ -11,7 +11,7 @@ function hashExist {
fi
PROJECT_HASH=`find $2 -type f ! -path "*node_modules*" ! -path "*build*" -print0 | sort -z | xargs -0 sha256sum | sha256sum`
HASH_VALUE=`echo $PROJECT_HASH$1 | sha256sum | head -c 64`
RESPONSE=`curl -H "Content-Type: application/json" -d "{\"structuredQuery\": {\"from\": {\"collectionId\": \"builds\"},\"where\": {\"compositeFilter\": {\"op\": \"AND\",\"filters\": [{\"fieldFilter\": {\"field\": {\"fieldPath\": \"project\"},\"op\": \"EQUAL\",\"value\": {\"stringValue\": '$2'}}},{\"fieldFilter\": {\"field\": {\"fieldPath\": \"hash\"},\"op\": \"EQUAL\",\"value\": {\"stringValue\": '$HASH_VALUE'}}}]}}}}" -X POST "https://firestore.googleapis.com/v1/projects/fyipe-devops/databases/(default)/documents:runQuery"`
RESPONSE=`curl -H "Content-Type: application/json" -d "{\"structuredQuery\": {\"from\": {\"collectionId\": \"builds\"},\"where\": {\"compositeFilter\": {\"op\": \"AND\",\"filters\": [{\"fieldFilter\": {\"field\": {\"fieldPath\": \"project\"},\"op\": \"EQUAL\",\"value\": {\"stringValue\": '$2'}}},{\"fieldFilter\": {\"field\": {\"fieldPath\": \"hash\"},\"op\": \"EQUAL\",\"value\": {\"stringValue\": '$HASH_VALUE'}}}]}}}}" -X POST "https://firestore.googleapis.com/v1/projects/oneuptime-devops/databases/(default)/documents:runQuery"`
# if response contains an array of object with document key, then the hash already exist in db
document=`jq '.[0].document' <<< "$RESPONSE"`
if [[ $document == null ]]

View File

@@ -6,7 +6,7 @@ function storeHash {
# $1 -> Job Name; $2 -> Project
PROJECT_HASH=`find $2 -type f ! -path "*node_modules*" ! -path "*build*" -print0 | sort -z | xargs -0 sha256sum | sha256sum`
HASH_VALUE=`echo $PROJECT_HASH$1 | sha256sum | head -c 64`
curl -H "Content-Type: application/json" -d "{\"fields\": {\"project\": {\"stringValue\": '$2'},\"hash\": {\"stringValue\": '$HASH_VALUE'}}}" -X POST "https://firestore.googleapis.com/v1/projects/fyipe-devops/databases/(default)/documents/builds"
curl -H "Content-Type: application/json" -d "{\"fields\": {\"project\": {\"stringValue\": '$2'},\"hash\": {\"stringValue\": '$HASH_VALUE'}}}" -X POST "https://firestore.googleapis.com/v1/projects/oneuptime-devops/databases/(default)/documents/builds"
}
if [[ $CI_COMMIT_BRANCH != "master" ]] && [[ $CI_COMMIT_BRANCH != "release" ]]

View File

@@ -23,8 +23,8 @@ version init-script
version licensing
version helm-chart
version js-sdk
version fyipe-le-store
version fyipe-acme-http-01
version oneuptime-le-store
version oneuptime-acme-http-01
version lighthouse-runner
version script-runner
version container-scanner

View File

@@ -23,8 +23,8 @@ deploy_staging_go-sdk:
- git tag v3.0.$CI_PIPELINE_IID-qa
# - go build
# - git checkout staging || git checkout -b staging
# - git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/Fyipe/go-sdk.git staging --force
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/Fyipe/go-sdk.git v3.0.$CI_PIPELINE_IID-qa --force
# - git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/go-sdk.git staging --force
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/go-sdk.git v3.0.$CI_PIPELINE_IID-qa --force
- cd ..
- chmod +x ./ci/scripts/cleanup.sh
- ./ci/scripts/cleanup.sh
@@ -64,9 +64,9 @@ production_go-sdk:
- git tag v0.3.0.$CI_PIPELINE_IID
# - go build
# - git checkout staging || git checkout -b staging
# - git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/Fyipe/go-sdk.git staging --force
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/Fyipe/go-sdk.git v3.0.$CI_PIPELINE_IID --force
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/Fyipe/go-sdk.git master --force
# - git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/go-sdk.git staging --force
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/go-sdk.git v3.0.$CI_PIPELINE_IID --force
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/go-sdk.git master --force
- cd ..
- chmod +x ./ci/scripts/cleanup.sh
- ./ci/scripts/cleanup.sh

View File

@@ -31,7 +31,7 @@ staging_java-sdk:
- git add .
- git commit -m "staging deployment version 3.0.$CI_PIPELINE_IID-SNAPSHOT"
- git checkout staging || git checkout -b staging
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/Fyipe/java-sdk.git staging --force
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/java-sdk.git staging --force
- cd ..
- chmod +x ./ci/scripts/cleanup.sh
- ./ci/scripts/cleanup.sh
@@ -75,7 +75,7 @@ production_java-sdk:
- git init
- git add .
- git commit -m "production deployment version 3.0.$CI_PIPELINE_IID"
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/Fyipe/java-sdk.git master --force
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/java-sdk.git master --force
- cd ..
- chmod +x ./ci/scripts/cleanup.sh
- ./ci/scripts/cleanup.sh

View File

@@ -21,12 +21,12 @@ staging_php-sdk:
- chmod +x ../ci/scripts/version-setup.sh
- ../ci/scripts/version-setup.sh
- composer-version patch
- json -I -f composer.json -e 'this.name="fyipe/sdk-staging"'
- json -I -f composer.json -e 'this.name="oneuptime/sdk-staging"'
- git init
- git add .
- git commit -m "staging commit version 3.0.$CI_PIPELINE_IID"
- git checkout staging || git checkout -b staging
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/Fyipe/php-sdk.git staging --force
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/php-sdk.git staging --force
- cd ..
- chmod +x ./ci/scripts/cleanup.sh
- ./ci/scripts/cleanup.sh
@@ -60,10 +60,10 @@ production_php-sdk:
- git commit -m "production commit version 3.0.$CI_PIPELINE_IID" || echo "Nothing to update because no changes to sdk was made" && exit 0
- git checkout -f master
- composer-version patch
- json -I -f composer.json -e 'this.name="fyipe/sdk"'
- json -I -f composer.json -e 'this.name="oneuptime/sdk"'
- git add .
- git commit -m "production commit version 3.0.$CI_PIPELINE_IID" || echo "Nothing to update because no changes to sdk was made" && exit 0
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/Fyipe/php-sdk.git master --force
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/php-sdk.git master --force
- cd ..
- chmod +x ./ci/scripts/cleanup.sh
- ./ci/scripts/cleanup.sh

View File

@@ -18,7 +18,7 @@ test_python-sdk:
- sudo apt-get install -y python3-pip
- cd python-sdk
- pip3 install -r requirements.txt
- python3 -m unittest discover -s fyipe_sdk/tests
- python3 -m unittest discover -s oneuptime_sdk/tests
- cd ..
- chmod +x ./ci/scripts/storehash.sh
- ./ci/scripts/storehash.sh test_python-sdk python-sdk backend

View File

@@ -23,7 +23,7 @@ staging_python-sdk:
- git add .
- git commit -m "staging commit version 3.0.$CI_PIPELINE_IID"
- git checkout staging || git checkout -b staging
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/Fyipe/python-sdk.git staging --force
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/python-sdk.git staging --force
- cd ..
- chmod +x ./ci/scripts/cleanup.sh
- ./ci/scripts/cleanup.sh
@@ -56,7 +56,7 @@ production_python-sdk:
- git add .
- git commit -m "production commit version 3.0.$CI_PIPELINE_IID" || echo "Nothing to update because no changes to sdk was made" && exit 0
- git checkout -f master
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/Fyipe/python-sdk.git master --force
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/python-sdk.git master --force
- cd ..
- chmod +x ./ci/scripts/cleanup.sh
- ./ci/scripts/cleanup.sh

View File

@@ -13,7 +13,7 @@ audit_ruby-sdk:
- sudo apt install -y rbenv
- ruby -v
- gem env home
- cd ruby-sdk/fyipe
- cd ruby-sdk/oneuptime
- sudo gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"
- which bundle
- gem list bundler

View File

@@ -16,7 +16,7 @@ test_ruby-sdk:
- sudo docker run --env-file ./backend/.env -e ENCRYPTION_KEY=$ENCRYPTION_KEY --net=host -d oneuptime/backend:3.0.$CI_PIPELINE_IID
- sudo docker ps
- sudo apt install -y rbenv
- cd ruby-sdk/fyipe
- cd ruby-sdk/oneuptime
- sudo gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"
- bundle --version
- bundle install

View File

@@ -11,7 +11,7 @@ staging_ruby-sdk:
- curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
- sudo apt install -y rbenv
# - sudo gem install bundler
- cd ruby-sdk/fyipe
- cd ruby-sdk/oneuptime
- sudo gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"
- bundle install
- git init
@@ -23,13 +23,13 @@ staging_ruby-sdk:
- touch $GEMPATH # start recreation
- CUSTOMSPACE=' '
- echo "---" >> $GEMPATH
- echo ":fyipegem:$CUSTOMSPACE$RUBYGEM_API_KEY" >> $GEMPATH
- echo ":oneuptimegem:$CUSTOMSPACE$RUBYGEM_API_KEY" >> $GEMPATH
- chmod 0600 $GEMPATH
- bundle exec gem bump -v 3.0.$CI_PIPELINE_IID-qa
- gem build fyipe.gemspec
- gem push fyipe-3.0.$CI_PIPELINE_IID.pre.qa.gem -k fyipegem
- gem build oneuptime.gemspec
- gem push oneuptime-3.0.$CI_PIPELINE_IID.pre.qa.gem -k oneuptimegem
- git checkout staging || git checkout -b staging
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/Fyipe/ruby-sdk.git staging --force
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/ruby-sdk.git staging --force
- cd ..
- cd ..
- chmod +x ./ci/scripts/cleanup.sh
@@ -53,7 +53,7 @@ production_ruby-sdk:
- curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
- sudo apt install -y rbenv
# - sudo gem install bundler
- cd ruby-sdk/fyipe
- cd ruby-sdk/oneuptime
- sudo gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"
- bundle install
- git init
@@ -68,16 +68,16 @@ production_ruby-sdk:
- touch $GEMPATH # start recreation
- CUSTOMSPACE=' '
- echo "---" >> $GEMPATH
- echo ":fyipegem:$CUSTOMSPACE$RUBYGEM_API_KEY" >> $GEMPATH
- echo ":oneuptimegem:$CUSTOMSPACE$RUBYGEM_API_KEY" >> $GEMPATH
- chmod 0600 $GEMPATH
- ls -l
- pwd -P
- bundle exec gem bump -v 3.0.$CI_PIPELINE_IID
- gem build fyipe.gemspec
- gem push fyipe-3.0.$CI_PIPELINE_IID.gem -k fyipegem
- gem build oneuptime.gemspec
- gem push oneuptime-3.0.$CI_PIPELINE_IID.gem -k oneuptimegem
# - git add .
# - git commit -m "production commit version 3.0.$CI_PIPELINE_IID" || echo "Nothing to update because no changes to sdk was made" && exit 0
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/Fyipe/ruby-sdk.git master --force
- git push https://$GITHUB_USERNAME:$GITHUB_PASSWORD@github.com/OneUptime/ruby-sdk.git master --force
- cd ..
- cd ..
- chmod +x ./ci/scripts/cleanup.sh

View File

@@ -45,13 +45,13 @@ app.use(async function(req, res, next) {
const host = req.hostname;
try {
if (host && host === 'fyipe.com') {
if (host && host === 'oneuptime.com') {
res.writeHead(301, {
Location: `https://oneuptime.com${req.url}`,
});
return res.end();
}
if (host && host === 'staging.fyipe.com') {
if (host && host === 'staging.oneuptime.com') {
res.writeHead(301, {
Location: `https://staging.oneuptime.com${req.url}`,
});

View File

@@ -102,7 +102,7 @@
"@jest/test-sequencer": "^26.0.1",
"axios-mock-adapter": "^1.15.0",
"depcheck": "^1.4.1",
"fyipe": "^3.0.10051",
"oneuptime": "^3.0.10051",
"jest-localstorage-mock": "^2.2.0",
"npm-force-resolutions": "0.0.10",
"purgecss": "^4.0.3",
@@ -13662,9 +13662,9 @@
"@types/yargs-parser": "*"
}
},
"node_modules/fyipe": {
"node_modules/oneuptime": {
"version": "3.0.12426",
"resolved": "https://registry.npmjs.org/fyipe/-/fyipe-3.0.12426.tgz",
"resolved": "https://registry.npmjs.org/oneuptime/-/oneuptime-3.0.12426.tgz",
"integrity": "sha512-6TPJ9AGFrR0s9BBR0wXE+C0X+PO2+F6TihMBufp6vcib0C7JCD//2Ne1yvCh+GYbbMmpTN+z8QtcRvmqA/pquA==",
"dev": true,
"hasInstallScript": true,
@@ -13688,7 +13688,7 @@
"commander": "^7.1.0"
},
"bin": {
"fyipe": "src/cli/fyipe.js"
"oneuptime": "src/cli/oneuptime.js"
},
"optionalDependencies": {
"node-linux": "^0.1.12",
@@ -28311,7 +28311,7 @@
"url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"
}
},
"node_modules/fyipe/node_modules/semver": {
"node_modules/oneuptime/node_modules/semver": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
@@ -37042,9 +37042,9 @@
"resolved": "https://registry.npmjs.org/fuzzy-match-utils/-/fuzzy-match-utils-1.3.0.tgz",
"integrity": "sha1-fevi1tqx3949lSZALD5rA/wWhPA="
},
"fyipe": {
"oneuptime": {
"version": "3.0.12426",
"resolved": "https://registry.npmjs.org/fyipe/-/fyipe-3.0.12426.tgz",
"resolved": "https://registry.npmjs.org/oneuptime/-/oneuptime-3.0.12426.tgz",
"integrity": "sha512-6TPJ9AGFrR0s9BBR0wXE+C0X+PO2+F6TihMBufp6vcib0C7JCD//2Ne1yvCh+GYbbMmpTN+z8QtcRvmqA/pquA==",
"dev": true,
"requires": {

View File

@@ -110,7 +110,7 @@
"@jest/test-sequencer": "^26.0.1",
"axios-mock-adapter": "^1.15.0",
"depcheck": "^1.4.1",
"fyipe": "^3.0.10051",
"oneuptime": "^3.0.10051",
"jest-localstorage-mock": "^2.2.0",
"npm-force-resolutions": "0.0.10",
"purgecss": "^4.0.3",

View File

@@ -61,12 +61,12 @@ if (User.isLoggedIn()) {
}
const App = props => {
const oldHostNames = ['staging.fyipe.com', 'fyipe.com'];
const oldHostNames = ['staging.oneuptime.com', 'oneuptime.com'];
const currentHostName = window.location.hostname;
if (oldHostNames.includes(currentHostName)) {
const updatedLink = `${window.location.origin.replace(
'fyipe',
'oneuptime',
'oneuptime'
)}${window.location.pathname}`;

View File

@@ -54,7 +54,7 @@ class ApplicationLogDetailView extends Component {
any logs, Click{' '}
<a
rel="noopener noreferrer"
href="https://github.com/Fyipe/feature-docs/blob/master/log.md"
href="https://github.com/OneUptime/feature-docs/blob/master/log.md"
target="_blank"
className="Border-bottom--white Text-fontWeight--bold Text-color--white"
>

View File

@@ -4,7 +4,7 @@ import ViewApplicationLogKey from '../modals/ViewApplicationLogKey';
import PropTypes from 'prop-types';
import ShouldRender from '../basic/ShouldRender';
import { connect } from 'react-redux';
import Select from '../../components/basic/react-select-fyipe';
import Select from '../../components/basic/react-select-oneuptime';
import SearchBox from '../basic/SearchBox';
import DateTimeRangePicker from '../basic/DateTimeRangePicker';
import Badge from '../common/Badge';

View File

@@ -1,7 +1,7 @@
import React, { useState, useRef, useEffect } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Select from './react-select-fyipe';
import Select from './react-select-oneuptime';
const errorStyle = {
color: 'red',

View File

@@ -1,6 +1,6 @@
import React, { useState, useRef, useEffect } from 'react';
import PropTypes from 'prop-types';
import Select from './react-select-fyipe';
import Select from './react-select-oneuptime';
const RenderSelect = ({
input,

View File

@@ -1,7 +1,7 @@
import React, { useState, useRef, useEffect } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Select from './react-select-fyipe';
import Select from './react-select-oneuptime';
import { renderIfSubProjectAdmin } from '../../config';
const errorStyle = {

View File

@@ -2,7 +2,7 @@ import React, { useState, useRef, useEffect } from 'react';
import { connect } from 'react-redux';
import { formValueSelector } from 'redux-form';
import PropTypes from 'prop-types';
import Select from './react-select-fyipe';
import Select from './react-select-oneuptime';
const errorStyle = {
color: 'red',

View File

@@ -1,6 +1,6 @@
import React, { useState, useRef, useEffect } from 'react';
import PropTypes from 'prop-types';
import Select from './react-select-fyipe';
import Select from './react-select-oneuptime';
import { Zones } from './TimezoneArray';
const errorStyle = {

View File

@@ -2,7 +2,7 @@ import React from 'react';
import Select from 'react-select';
import PropTypes from 'prop-types';
const ReactSelectFyipe = props => (
const ReactSelectOneUptime = props => (
<Select
{...props}
styles={{
@@ -32,8 +32,8 @@ const ReactSelectFyipe = props => (
/>
);
ReactSelectFyipe.displayName = 'ReactSelectFyipe';
ReactSelectFyipe.propTypes = {
ReactSelectOneUptime.displayName = 'ReactSelectOneUptime';
ReactSelectOneUptime.propTypes = {
style: PropTypes.object,
};
export default ReactSelectFyipe;
export default ReactSelectOneUptime;

View File

@@ -86,7 +86,7 @@ class VerifyDomain extends Component {
registrar. For help on how you can
add txt records, follow this{' '}
<a
href="https://github.com/Fyipe/feature-docs/blob/master/txt-records.md"
href="https://github.com/OneUptime/feature-docs/blob/master/txt-records.md"
target="_blank"
rel="noopener noreferrer"
className="Text-fontWeight--medium"

View File

@@ -166,7 +166,7 @@ class ErrorTrackerDetailView extends Component {
any error, Click{' '}
<a
rel="noopener noreferrer"
href="https://github.com/Fyipe/feature-docs/blob/master/log.md"
href="https://github.com/OneUptime/feature-docs/blob/master/log.md"
target="_blank"
className="Border-bottom--white Text-fontWeight--bold Text-color--white"
>

View File

@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import Select from '../../components/basic/react-select-fyipe';
import Select from '../../components/basic/react-select-oneuptime';
import PropTypes from 'prop-types';
import ShouldRender from '../basic/ShouldRender';
import { FormLoader } from '../basic/Loader';

View File

@@ -354,7 +354,7 @@ class CreateMsTeams extends React.Component {
<a
target="_blank"
rel="noopener noreferrer"
href="https://github.com/Fyipe/feature-docs/blob/master/Webhooks.md#microsoft-teams"
href="https://github.com/OneUptime/feature-docs/blob/master/Webhooks.md#microsoft-teams"
style={{
textDecoration: 'underline',
}}

View File

@@ -353,7 +353,7 @@ class CreateSlack extends React.Component {
<a
target="_blank"
rel="noopener noreferrer"
href="https://github.com/Fyipe/feature-docs/blob/master/Webhooks.md#slack"
href="https://github.com/OneUptime/feature-docs/blob/master/Webhooks.md#slack"
style={{
textDecoration: 'underline',
}}

View File

@@ -355,7 +355,7 @@ class EditWebHook extends React.Component {
<a
target="_blank"
rel="noopener noreferrer"
href="https://github.com/Fyipe/feature-docs/blob/master/Webhooks.md#microsoft-teams"
href="https://github.com/OneUptime/feature-docs/blob/master/Webhooks.md#microsoft-teams"
style={{
textDecoration: 'underline',
}}

View File

@@ -353,7 +353,7 @@ class EditWebHook extends React.Component {
<a
target="_blank"
rel="noopener noreferrer"
href="https://github.com/Fyipe/feature-docs/blob/master/Webhooks.md#slack"
href="https://github.com/OneUptime/feature-docs/blob/master/Webhooks.md#slack"
style={{
textDecoration: 'underline',
}}

View File

@@ -476,7 +476,7 @@ export class MonitorDetail extends Component {
You need to install an agent on your
server, please{' '}
<a
href="https://github.com/Fyipe/js-sdk/blob/master/docs/server-monitor/README.md"
href="https://github.com/OneUptime/js-sdk/blob/master/docs/server-monitor/README.md"
rel="noopener noreferrer"
target="_blank"
style={{

View File

@@ -208,7 +208,7 @@ export class MonitorTitle extends Component {
You need to install an agent on your server,
please{' '}
<a
href="https://www.npmjs.com/package/fyipe"
href="https://www.npmjs.com/package/oneuptime"
rel="noopener noreferrer"
target="_blank"
style={{

View File

@@ -10,7 +10,7 @@ import DataPathHoC from '../DataPathHoC';
import { openModal, closeModal } from '../../actions/modal';
import AddSiteUrl from '../modals/AddSiteUrl';
import MonitorLighthouseLogsList from './MonitorLighthouseLogsList';
import Select from '../../components/basic/react-select-fyipe';
import Select from '../../components/basic/react-select-oneuptime';
export class MonitorViewLighthouseLogsBox extends Component {
constructor(props) {

View File

@@ -4,7 +4,7 @@ import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { getMonitorLogs } from '../../actions/monitor';
import MonitorLogsList from '../monitor/MonitorLogsList';
import Select from '../../components/basic/react-select-fyipe';
import Select from '../../components/basic/react-select-oneuptime';
import ShouldRender from '../../components/basic/ShouldRender';
import DateTimeRangePicker from '../basic/DateTimeRangePicker';
import moment from 'moment';

View File

@@ -4,7 +4,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import Select from '../../components/basic/react-select-fyipe';
import Select from '../../components/basic/react-select-oneuptime';
/**
* onChange from Redux Form Field has to be called explicity.

View File

@@ -4,7 +4,7 @@ import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { getMonitorLogs } from '../../actions/monitor';
//import MonitorLogsList from '../monitor/MonitorLogsList';
import Select from '../../components/basic/react-select-fyipe';
import Select from '../../components/basic/react-select-oneuptime';
//import ShouldRender from '../../components/basic/ShouldRender';
//import DateTimeRangePicker from '../basic/DateTimeRangePicker';
//import moment from 'moment';

View File

@@ -1,6 +1,6 @@
import React, { useState, useRef, useEffect } from 'react';
import PropTypes from 'prop-types';
import Select from '../../components/basic/react-select-fyipe';
import Select from '../../components/basic/react-select-oneuptime';
const RenderRotationFrequency = ({
input,

View File

@@ -157,7 +157,7 @@ export class Setting extends Component {
this.props.statusPage.status &&
this.props.statusPage.status._id
) {
hosted = `${this.props.statusPage.status._id}.fyipeapp.com`;
hosted = `${this.props.statusPage.status._id}.oneuptimeapp.com`;
}
if (
this.props.statusPage &&

View File

@@ -59,7 +59,7 @@ class VerifyDomainModal extends Component {
registrar. For help on how you can
add txt records, follow this{' '}
<a
href="https://github.com/Fyipe/feature-docs/blob/master/txt-records.md"
href="https://github.com/OneUptime/feature-docs/blob/master/txt-records.md"
target="_blank"
rel="noopener noreferrer"
className="Text-fontWeight--medium"

View File

@@ -4,7 +4,7 @@ import { bindActionCreators } from 'redux';
import Tutorial from './Tutorial';
import PropTypes from 'prop-types';
import { closeTutorial } from '../../actions/tutorial';
import ApiDoc from '../fyipeApi/ApiDoc';
import ApiDoc from '../oneuptimeApi/ApiDoc';
import ShouldRender from '../basic/ShouldRender';
const Tutorials = ({ type, closeTutorial, currentProjectId }) => (

View File

@@ -31,7 +31,7 @@ class MSTeamsBox extends React.Component {
}}
target="_blank"
rel="noopener noreferrer"
href="https://github.com/Fyipe/feature-docs/blob/master/Webhooks.md#microsoft-teams"
href="https://github.com/OneUptime/feature-docs/blob/master/Webhooks.md#microsoft-teams"
>
here
</a>{' '}

View File

@@ -29,7 +29,7 @@ class SlackBox extends React.Component {
}}
target="_blank"
rel="noopener noreferrer"
href="https://github.com/Fyipe/feature-docs/blob/master/Webhooks.md#slack"
href="https://github.com/OneUptime/feature-docs/blob/master/Webhooks.md#slack"
>
here
</a>{' '}

View File

@@ -9,7 +9,7 @@ class ZapierBox extends React.Component {
componentDidMount() {
const embededZapierTemplates = 7;
const zapierEmbededWidget = `https://zapier.com/apps/embed/widget.js?services=fyipe&limit=${embededZapierTemplates}&html_id=zapierId`;
const zapierEmbededWidget = `https://zapier.com/apps/embed/widget.js?services=oneuptime&limit=${embededZapierTemplates}&html_id=zapierId`;
const script = document.createElement('script');
script.async = true;

File diff suppressed because one or more lines are too long

View File

@@ -8,7 +8,7 @@ import APISettings from '../components/settings/APISettings';
import TutorialBox from '../components/tutorial/TutorialBox';
import RenderIfOwner from '../components/basic/RenderIfOwner';
import RenderIfSubProjectMember from '../components/basic/RenderIfSubProjectMember';
class FyipeApi extends Component {
class OneUptimeApi extends Component {
render() {
const {
location: { pathname },
@@ -90,9 +90,9 @@ class FyipeApi extends Component {
}
}
FyipeApi.displayName = 'FyipeApi';
OneUptimeApi.displayName = 'OneUptimeApi';
FyipeApi.propTypes = {
OneUptimeApi.propTypes = {
location: PropTypes.shape({
pathname: PropTypes.string,
}),
@@ -106,4 +106,4 @@ const mapStateToProps = state => {
switchToProjectViewerNav: state.project.switchToProjectViewerNav,
};
};
export default connect(mapStateToProps)(FyipeApi);
export default connect(mapStateToProps)(OneUptimeApi);

View File

@@ -7,7 +7,7 @@ import Members from '../components/reports/Members';
import Monitors from '../components/reports/Monitors';
import Incidents from '../components/reports/Incidents';
import ResolveTime from '../components/reports/ResolveTime';
import Select from '../components/basic/react-select-fyipe';
import Select from '../components/basic/react-select-oneuptime';
import { logEvent } from '../analytics';
import { SHOULD_LOG_ANALYTICS } from '../config';
import BreadCrumbItem from '../components/breadCrumb/BreadCrumbItem';

View File

@@ -48,7 +48,7 @@ const ApplicationDetail = lazy(() => import('./ApplicationDetail'));
const ContainerDetail = lazy(() => import('./ContainerDetail'));
const GitCredential = lazy(() => import('./GitCredential'));
const DockerCredential = lazy(() => import('./DockerCredential'));
const FyipeApi = lazy(() => import('./FyipeApi'));
const OneUptimeApi = lazy(() => import('./OneUptimeApi'));
const ChangePasswordSetting = lazy(() => import('./ChangePasswordSetting'));
const DeleteAccountPage = lazy(() => import('./DeleteAccountPage'));
const Consulting = lazy(() => import('./Consulting'));
@@ -101,7 +101,7 @@ export default {
ContainerDetail,
GitCredential,
DockerCredential,
FyipeApi,
OneUptimeApi,
ChangePasswordSetting,
DeleteAccountPage,
ScheduledEvent,

View File

@@ -40,7 +40,7 @@ const {
ContainerDetail,
GitCredential,
DockerCredential,
FyipeApi,
OneUptimeApi,
ChangePasswordSetting,
DeleteAccountPage,
ScheduledEvent,
@@ -557,7 +557,7 @@ export const groups = [
icon: 'apis',
visible: true,
subRoutes: [],
component: FyipeApi,
component: OneUptimeApi,
index: 13,
shortcut: 's+a',
},

View File

@@ -1,8 +1,8 @@
MONGO_URL=mongodb://localhost:27017/fyipedb
MONGO_URL=mongodb://localhost:27017/oneuptimedb
CLUSTER_KEY=f414c23b4cdf4e84a6a66ecfd528eff2
SERVER_URL=http://localhost:3002
SLACK_ERROR_LOG_WEBHOOK=https://hooks.slack.com/services/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
SLACK_ERROR_LOG_CHANNEL=fyipe-engineering
SLACK_ERROR_LOG_CHANNEL=oneuptime-engineering
PORT=3200
SCRIPT_RUNNER_URL=http://localhost:3009
REALTIME_URL=http://localhost:3300

View File

@@ -69,7 +69,7 @@ const client = getMongoClient();
})();
// attach the database to global object
global.db = client.db('fyipedb');
global.db = client.db('oneuptimedb');
// Sentry: The request handler must be the first middleware on the app
app.use(Sentry.Handlers.requestHandler());

View File

@@ -4,7 +4,7 @@ module.exports = {
serverUrl: process.env['SERVER_URL'],
clusterKey: process.env['CLUSTER_KEY'],
dataIngestorVersion: packageJson.version,
mongoUrl: process.env['MONGO_URL'] || 'mongodb://localhost:27017/fyipedb',
mongoUrl: process.env['MONGO_URL'] || 'mongodb://localhost:27017/oneuptimedb',
scriptBaseUrl: process.env['SCRIPT_RUNNER_URL'],
realtimeUrl: process.env['REALTIME_URL'],
};

View File

@@ -9,9 +9,9 @@ MONGO_HOSTS='a59a474aad89940889c1eb69b1a8f884-135820180.us-east-2.elb.amazonaws.
MONGO_HOST='a59a474aad89940889c1eb69b1a8f884-135820180.us-east-2.elb.amazonaws.com' #Add one host because mongodump only supports one host.
MONGO_PORT="27017"
ONEUPTIME_DB_USERNAME='fyipe'
ONEUPTIME_DB_USERNAME='oneuptime'
ONEUPTIME_DB_PASSWORD='password'
ONEUPTIME_DB_NAME='fyipedb'
ONEUPTIME_DB_NAME='oneuptimedb'
CURRENT_DATE=$(date +%s)
CURRENT_USER=$(whoami)
BACKUP_PATH=~/db-backup
@@ -35,11 +35,11 @@ function HELP() {
echo "all arguments are optional and have a default value when not set"
echo ""
echo " -l Backup path on local system where backup file will be stored. Default value - $BACKUP_PATH"
echo " -n Database name. Default value 'fyipedb'"
echo " -n Database name. Default value 'oneuptimedb'"
echo " -p Database password. Default value 'password'"
echo " -r Helm release name. Default value 'fi'"
echo " -t Backup retain days. Set the number of days backup is kept before it is deleted. Default value '14'"
echo " -u Set database username. Default value 'fyipe'."
echo " -u Set database username. Default value 'oneuptime'."
echo " -v Set database environment. Enums {Production, Staging}, defaults to 'Staging'."
echo ""
echo " -h Help."

View File

@@ -1,8 +1,8 @@
#!/bin/sh
ONEUPTIME_DB_USERNAME='fyipe'
ONEUPTIME_DB_USERNAME='oneuptime'
ONEUPTIME_DB_PASSWORD='password'
ONEUPTIME_DB_NAME='fyipedb'
ONEUPTIME_DB_NAME='oneuptimedb'
BACKUP_RETAIN_DAYS=14
BACKUP_PATH=~/db-backup
@@ -17,9 +17,9 @@ function HELP() {
echo "optional arguments have a default value when not set"
echo ""
echo " -l Backup path on local system where backup file will be stored. Default value - $BACKUP_PATH"
echo " -n Database name. Default value 'fyipedb'"
echo " -n Database name. Default value 'oneuptimedb'"
echo " -p Database password. Default value 'password'"
echo " -u Set database username. Default value 'fyipe'."
echo " -u Set database username. Default value 'oneuptime'."
echo " -t Backup retain days. Number of days backup is kept before it is deleted. Default value '14'"
echo ""
echo " -h Help."

View File

@@ -12,9 +12,9 @@
MONGO_SERVER_HOST='a59a474aad89940889c1eb69b1a8f884-135820180.us-east-2.elb.amazonaws.com'
MONGO_SERVER_PORT="27017"
ONEUPTIME_DB_USERNAME='fyipe'
ONEUPTIME_DB_USERNAME='oneuptime'
ONEUPTIME_DB_PASSWORD='password'
ONEUPTIME_DB_NAME='fyipedb'
ONEUPTIME_DB_NAME='oneuptimedb'
CURRENT_DATE=$(date +%s)
CURRENT_USER=$(whoami)
FILE_NAME="oneuptime-backup-1638534940.archive"
@@ -30,9 +30,9 @@ function HELP() {
echo ""
echo " -f Name of file to be restored"
echo " -l File path on local system where file will be restored from. Default value - $FILE_PATH"
echo " -n Database name. Default value 'fyipedb'"
echo " -n Database name. Default value 'oneuptimedb'"
echo " -p Database password. Default value 'password'"
echo " -u Set database username. Default value 'fyipe'."
echo " -u Set database username. Default value 'oneuptime'."
echo " -v Set database environment. Enums {Production, Staging}, defaults to 'Staging'."
echo ""
echo " -h Help."

Some files were not shown because too many files have changed in this diff Show More