Sunshine latest
Self-hosted game stream host for Moonlight.
confighttp.h
Go to the documentation of this file.
1
5#pragma once
6
7// standard includes
8#include <functional>
9#include <string>
10
11// local includes
12#include "thread_safe.h"
13
14#define WEB_DIR SUNSHINE_ASSETS_DIR "/web/"
15
16namespace confighttp {
17 constexpr auto PORT_HTTPS = 1;
18 void start();
19} // namespace confighttp
20
21// mime types map
22const std::map<std::string, std::string> mime_types = {
23 {"css", "text/css"},
24 {"gif", "image/gif"},
25 {"htm", "text/html"},
26 {"html", "text/html"},
27 {"ico", "image/x-icon"},
28 {"jpeg", "image/jpeg"},
29 {"jpg", "image/jpeg"},
30 {"js", "application/javascript"},
31 {"json", "application/json"},
32 {"png", "image/png"},
33 {"svg", "image/svg+xml"},
34 {"ttf", "font/ttf"},
35 {"txt", "text/plain"},
36 {"woff2", "font/woff2"},
37 {"xml", "text/xml"},
38};
Declarations for thread-safe data structures.