This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { HTTP_STATUS } from '../../constants'; | |
| import { redirectToLogin } from '../utils'; | |
| const ContentType = { | |
| JSON: `application/json`, | |
| TEXT: `text/plain`, | |
| EXCEL: `application/vnd.ms-excel`, | |
| PDF: `application/pdf`, | |
| HTML: `text/html` | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require('express'); | |
| const Joi = require('joi'); | |
| const app = express(); | |
| const courses = [ | |
| {id: 1, name: `course1`}, | |
| {id: 2, name: `course2`}, | |
| {id: 3, name: `course3`}, | |
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| server_name zabbix.domain.ru; | |
| return 301 https://zabbix.domain.ru$request_uri; | |
| } | |
| server { | |
| listen 443 ssl default_server; | |
| ssl_session_cache builtin:1000 shared:SSL:10m; | |
| ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
| ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH'; |