2019-12-03 19:23:33 +00:00
|
|
|
//
|
|
|
|
// Created by loki on 6/3/19.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef SUNSHINE_NVHTTP_H
|
|
|
|
#define SUNSHINE_NVHTTP_H
|
|
|
|
|
2021-05-29 20:29:10 +00:00
|
|
|
#include <functional>
|
|
|
|
#include <string>
|
2021-05-29 21:05:37 +00:00
|
|
|
#include <Simple-Web-Server/server_http.hpp>
|
|
|
|
#include <Simple-Web-Server/server_https.hpp>
|
|
|
|
#include "thread_safe.h"
|
2020-01-19 23:22:13 +00:00
|
|
|
|
2019-12-03 19:23:33 +00:00
|
|
|
#define CA_DIR SUNSHINE_ASSETS_DIR "/demoCA"
|
2021-05-17 19:21:57 +00:00
|
|
|
#define PRIVATE_KEY_FILE CA_DIR "/cakey.pem"
|
|
|
|
#define CERTIFICATE_FILE CA_DIR "/cacert.pem"
|
2019-12-03 19:23:33 +00:00
|
|
|
|
|
|
|
namespace nvhttp {
|
2020-02-09 23:33:12 +00:00
|
|
|
void start(std::shared_ptr<safe::signal_t> shutdown_event);
|
2021-05-30 14:42:40 +00:00
|
|
|
bool pin(std::string pin);
|
2021-05-29 20:29:10 +00:00
|
|
|
} // namespace nvhttp
|
2019-12-03 19:23:33 +00:00
|
|
|
|
|
|
|
#endif //SUNSHINE_NVHTTP_H
|